• Hello,
    performing tests with tools.pingdom.com I noticed that on the homepage I have “Add Expires headers” with a score of “78”, instead in the posts I have “12”.
    How is it possible?
    The .htaccess file does not act on all the pages of my site?
    Thank you.

    • This topic was modified 5 years, 10 months ago by Steven Stern (sterndata). Reason: moved from installing to everything else
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello

    It might be possible that there are different. htaccess files present in your directory structure that may result in these different expiry headers.

    Thank you!

    Each page is going to score differently based on its content.

    I’m not sure how you wrote your htaccess but if you want it on all items it has to look something like this.

    <FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css|woff)$">
    ExpiresActive On
    ExpiresDefault A2592000
    </FilesMatch>

    You may have separate file expirations I don’t know. They’d look like this

    ExpiresByType image/png A2592000
    ExpiresByType image/gif A2592000
    ExpiresByType image/jpg A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType text/javascript A2592000
    ExpiresByType application/x-javascript A2592000
    ExpiresByType text/css A2592000
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Expires headers in posts and in home’ is closed to new replies.