Hi, it’s really odd as the cache is working for my site in some instances, but not in the most obvious. Static images on every page of the whole site, for example. The logo of the site is a good example. It never changes and is always on every single page of the website. It won’t cache, but an image i use on a navigation menu that only appears on certain pages, is cached fine.
thanks but i’ve been monitoring it for weeks now and never seen the logo file cached or most of the other files that you would expect to be. site furniture etc… not being cached
Open the developer tools in your browser (F12), reload the page, select the logo link under the network tab, and make a screenshot of it and post it here.
I am pretty sure the image will be cached on a subsequent request.
Your caching TTL is pretty high, but there is no guarantee Cloudflare will actually honour that. Especially rarely requested files might get purged earlier. But as long as it shows a HIT upon the second or third request you should be fine.
No recommendation from my side. I, personally, use the default settings (I believe they are four hours). It really comes down to to whether how much of an issue you have with Cloudflare requesting your files anew after X hours.
Hello again - sorry to say that the CF cache has returned to the normal behavior where all the main static assets such as logo etc… are not cached by CF.
Any idea why this is the case and is still the case?
Most likely a response header your server is sending. Either cache control or you are including a cookie, which typically prevents Cloudflare from caching as well.
hi and thanks - not aware of any changes other than reducing the Browser Cache Expiration to 8 days in the CF portal (it was higher). not aware of any cookies either and this was working previously so i don;t thing a cookie could be it.
I did enable dynamic content compression in IIS but can’t see how that’s related as the items not caching are static images and not text.