1

I have styled the class .tab-content and it works fine whenever i logged in, but i logged out then the css file is changed to a different file as you can see on the screenshoots below. I have ran drush cc all and drush cron as well as I don't have boost module installed. Do you have any idea to fixed this?

when i login When it is logged in

when i logout When it is logged out

1
  • What makes you think these should be the same? Commented May 18, 2016 at 20:31

1 Answer 1

1

Drupal serves aggregated CSS. If one or more CSS files are not available (or required) for anonymous users they are not included in the aggregated file for the sake of a smaller file size. This file can obviously not be saved with the same name.

If you disable CSS aggregation (Configuration > Performance), you can see all individual files and this might explain the difference.

1
  • Thank you for your reply. I just upload again the css file from my localhost to the production site then it works. It is so weird.
    – Tony
    Commented May 19, 2016 at 6:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.