Title: CSS optimization cache problem
Last modified: May 20, 2018

---

# CSS optimization cache problem

 *  Resolved [stefanika](https://wordpress.org/support/users/stefanika/)
 * (@stefanika)
 * [8 years ago](https://wordpress.org/support/topic/css-optimization-cache-problem/)
 * Hi,
    Having installed FooGallery plugin, I have to check my website and clear
   CSS optimization cache regularly, about once every week, to make it work properly.
   If cache is not cleared, all images appear without the gallery settings. When
   cache is cleared, gallery is working as it should. Any cues? Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcss-optimization-cache-problem%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [8 years ago](https://wordpress.org/support/topic/css-optimization-cache-problem/#post-10306779)
 * hi there,
 * The CSS optimization ensures the foogallery CSS file is loaded into the head 
   of the page and not in the footer (which causes undesireable flashing)
 * This cache is cleared every time the gallery is updated, and is rebuilt when 
   the gallery is loaded the next time. It is also cleared when the plugin updates.
 * I am not sure why it stops working after a week, as you should see the issue 
   immediately.
 * Please can you let me know when you have the issue again so I can debug it on
   your site. Please do not clear the css cache again until I can have a look
 *  Thread Starter [stefanika](https://wordpress.org/support/users/stefanika/)
 * (@stefanika)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/css-optimization-cache-problem/#post-10450585)
 * Hi,
    Looks like the problem has been solved, FooGallery is now working perfectly
   on all pages on my website. Thanks.
 *  [opino](https://wordpress.org/support/users/opino/)
 * (@opino)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/css-optimization-cache-problem/#post-10509923)
 * I have the same problem. Did you find the solution for it?
    In my case the CSS
   cache stores HTTPS links to the CSS files. But I don’t have a valid SSL certificate.
   This causes, that while browsing HTTP version of the site, the CSS is not loaded
   properly, as there is HTTPS link and the browser won’t load it. Clearing CSS 
   cache helps just for a short time. Just until the cache stores the HTTPS link
   again.
 * [@bradvin](https://wordpress.org/support/users/bradvin/): would it be possible
   to disable CSS cache or force to store HTTP links only?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘CSS optimization cache problem’ is closed to new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [opino](https://wordpress.org/support/users/opino/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/css-optimization-cache-problem/#post-10509923)
 * Status: resolved