• Hi,

    I’m using WP-Rocket in parallel with the Debloat plugin and I’m noticing an incompatibility in the cache life of fonts and javascript files.

    WP-Rocket sets them at 4 months for fonts and 1 year for javascript files (htaccess), but when the Debloat plugin is active, Google’s pagespeed tells me that the cache lifetime is only 30 days for fonts and javascripts.

    Do you think it’s possible to solve this problem and ensure that WP-Rocket directives are properly taken into account?

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you’re using Cloudflare? You can use “Cache Rules (Beta)” Can override origin to one year…CF Cache Status HIT 31536000

    No CF option for 4 months, but can set fonts to 6 months

    Plugin Author asadkn

    (@asadkn)

    Hi,

    The plugin does not deal with assets expiry and this is left for your cache plugins or the webserver defaults. I don’t want to bloat the plugin and deal with .htaccess entries as cache plugins already handled that usually.

    What would be interesting to know is the asset cache header settings that WP-Rocket is injecting.

    Debloat stores the cached assets in: /wp-content/cache/debloat/ folder so you will have to ask wp-rocket about how to also target the assets in this folder.

    @shirtguy72 is also correct about handling this with cloudflare.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cache lifetime for fonts and javascripts’ is closed to new replies.