add expires not working for javascript
-
Greetings and thanks in advance for your help,
I am working on getting our website to load more quickly. I installed your app, and checked 30 days for many things, including javascript. However, there are several instances of ‘far-out expiry dates’ for jquery when testing the site on GTMetrix.com.
Please help! Below I have pasted the htaccess file from the site.
# BEGIN Add Expires Headers Plugin
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/gif “access plus 30 days”
ExpiresByType image/jpeg “access plus 30 days”
ExpiresByType image/jpg “access plus 30 days”
ExpiresByType image/png “access plus 30 days”
ExpiresByType image/ico “access plus 30 days”
ExpiresByType image/tiff “access plus 30 days”
ExpiresByType image/webp “access plus 30 days”
ExpiresByType audio/mp3 “access plus 30 days”
ExpiresByType audio/wav “access plus 30 days”
ExpiresByType video/mp4 “access plus 30 days”
ExpiresByType video/avi “access plus 30 days”
ExpiresByType video/wmv “access plus 30 days”
ExpiresByType text/css “access plus 30 days”
ExpiresByType application/javascript A2592000
ExpiresByType text/x-javascript “access plus 30 days”
ExpiresByType application/x-javascript “access plus 2592000 seconds”
</IfModule>
# END Add Expires Headers Plugin<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>GTMetrix lists the following errors (I understand a few are from external sources and thus won’t be fixed by the plugin).
http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700&subset=latin,latin-ext
http://bakashana.org/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp
http://bakashana.org/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1
http://cdn-images.mailchimp.com/embedcode/classic-10_7.css
http://bakashana.org/wp-includes/js/wp-embed.min.js?ver=5.2.3
http://bakashana.org/wp-includes/js/wp-emoji-release.min.js?ver=5.2.3
https://static.addtoany.com/menu/page.jsThanks again!
The page I need help with: [log in to see the link]
The topic ‘add expires not working for javascript’ is closed to new replies.