• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 adding expire headers to attachments

#1
Hey guys I have a few attachments displayed on the front page that usually won't change.
I would like to add expire headers to improve the overall speed of my board.

If I test my site via gtmetrix I get this:

There are 4 static components without a far-future expiration date.

Adding this doesn't make any difference :

Code:
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 seconds"
    ExpiresByType text/html "access plus 1 seconds"
    ExpiresByType image/gif "access plus 3456000 seconds"
    ExpiresByType image/jpeg "access plus 3456000 seconds"
    ExpiresByType image/png "access plus 3456000 seconds"
    ExpiresByType text/css "access plus 3456000 seconds"
    ExpiresByType text/javascript "access plus 3456000 seconds"
    ExpiresByType application/javascript "access plus 3456000 seconds"
    ExpiresByType application/x-javascript "access plus 3456000 seconds"
</IfModule>
I would appreciate any input.