• Hi,
    I have this setup:
    Minify enabled for js and css, manually, disc cached;
    Browser cache enabled;
    Page cache, database cache enabled, but not relevant for the case.

    The minified js gets weird Cache-control policy, everything is doubled and TTL is messed up:
    “max-age=3, public, must-revalidate, proxy-revalidate, public, must-revalidate, proxy-revalidate”.

    The possible reason: the file header is updated twice, once from the docroot .htaccess and once from cache/minify/.htaccess file, due to header append expression for js filetype.
    If I change the main .htaccess line to
    “Header set Cache-Control “max-age=1296000, public, must-revalidate, proxy-revalidate”,
    everything works fine.

    https://wordpress.org/plugins/w3-total-cache/

  • The topic ‘Header Cache-control problem’ is closed to new replies.