Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO normally enforces a 1y cache age, but you have something (a plugin probably) overriding this in a .htaccess somewhere. I’ve seen a similar thread where the culprit were (old) .htaccess entries from WP Super Cache, see here.

    hope this helps,
    frank

    Thread Starter anindyasundar

    (@anindyasundar)

    Yes, I found the following .htaccess entry in /wp-content/cache directory. I used this plugin 2.5 years ago and forgotten about that. Removing this .htaccess file fixed the issue.

    Thank you so much for the help.

    # BEGIN supercache
    <IfModule mod_mime.c>
    <FilesMatch “\.html\.gz$”>
    ForceType text/html
    FileETag None
    </FilesMatch>
    AddEncoding gzip .gz
    AddType text/html .gz
    </IfModule>
    <IfModule mod_deflate.c>
    SetEnvIfNoCase Request_URI \.gz$ no-gzip
    </IfModule>
    <IfModule mod_headers.c>
    Header set Vary “Accept-Encoding, Cookie”
    Header set Cache-Control ‘max-age=3, must-revalidate’
    </IfModule>
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/html A3
    </IfModule>

    # END supercache

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Browser cache age for Autoptimized CSS and JS files 3 sec only’ is closed to new replies.