• Resolved rudolfl

    (@rudolfl)


    Hi,

    Browser cache is turned on and set to default value of 31557600. Verified, .htaccess contains same for JS

    However, Google Page speed says JS files are served with TTL of 7 days

    • This topic was modified 12 months ago by rudolfl.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support qtwrk

    (@qtwrk)

    that’s most likely your JS files are having cache-control header while that setting only do expires header, when both present , the cache-control will take precedence

    Thread Starter rudolfl

    (@rudolfl)

    Thank you for replying,

    This one is somewhat strange, actually.

    Here is a resource:

    https://fascinators.b-cdn.net/wp-content/themes/Avada/includes/lib/assets/min/js/library/jquery.placeholder.js

    On my browser (Chrome in incognito mode and I am not logged into the site), I can see:

    Cache-Control: public, max-age=31919000

    This is expected — about a year expiry.

    Testing same resource with external cache checker (https://requestmetrics.com/resources/tools/http-cache-checker/), I am getting

    Cache-Control: public, max-age=604800

    I do not have Expires header.

    Plugin Support qtwrk

    (@qtwrk)

    it is giving me 604800 as well though.

    I think there is some setting on bunny dashboard you should check.

    Thread Starter rudolfl

    (@rudolfl)

    Hmm…

    I think you are right about BunnyCDN. Settings there is to honor cache directives from the site, but I did a test and I get max-age of 31919000 from Australia and 604800 from US. Something fishy is going on. I will contact BunnyCDN support

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Browser Cache settings do not work?’ is closed to new replies.