.htaccess - Leverage browser caching (htaccess apache) -


i trying fix leverage browser caching warning gtmetrix.

this .htaccess file:

<ifmodule mod_expires.c> expiresactive on expiresbytype image/jpg "access 1 year" expiresbytype image/jpeg "access 1 year" expiresbytype image/gif "access 1 year" expiresbytype image/png "access 1 year" expiresbytype text/css "access 1 month" expiresbytype application/pdf "access 1 month" expiresbytype application/javascript "access 1 month" expiresbytype application/x-javascript "access 1 month" expiresbytype application/x-shockwave-flash "access 1 month" expiresbytype image/x-icon "access 1 year" expiresdefault "access 2 days" </ifmodule> 

when analysing site gtmetrix says files expires after 23 hours , 30 minutes. however, when analysing response headers in devtools files has correct expire length.

gtmetrix , devtools comparison

can ignore gtmetrix warning or doing wrong?

also don't know why devtools shows nginx server. have server set unix/apache in web host config.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -