Browser caching isn’t working for JS and CSS files
-
I really love this plugin but I’m facing a weird problem lately.
Ever since I moved from PHP-CGI+Apache to PHP-FPM+Nginx, the browsing cache has partially stopped working. That’s apparently because I can’t use .htaccess anymore.
JS and CSS files no more have browser caching enabled. What’s strange is that images on my site still have a cache policy with cache-control showing max-age=15552000. How’s that possible?
Note:
1. I’m not using any other cache plugin.
2. My hosting doesn’t offer any kind of server-side cache feature yet.
3. Browsing caching option is enabled in WP Cloudflare Super Page Cache.
4. Browser Cache TTL is set to “Respect Existing Headers’ in Cloudflare.P.S. I also asked my host to add browser caching rules for static assets as specified by you but they can’t do that.
Please tell what exactly is causing this problem and how I can re-enable browser caching for CSS, JS and font files. Can this be fixed by adding a certain page rule in Cloudflare?
Thanks in advance.
The page I need help with: [log in to see the link]
- The topic ‘Browser caching isn’t working for JS and CSS files’ is closed to new replies.