Hi All,
I have a huge JS file (300k compressed) so I’m trying to get the browser to cache it so that return visits and interior page loads will be much faster. Here is the code I am using in my htaccess file:
<FilesMatch “\.(ico|jpg|jpeg|png|gif|js|css|swf)$”>
ExpiresDefault “access plus 2 hours”
</FilesMatch><FilesMatch “(sitewidemin)$”>
ExpiresDefault “access plus 2 hours”
</FilesMatch>
The first one works fine for normal images and what not, but doesn’t cache the js or css files since the URL for them doesnt include .js
Here is the line where I am loading it into the HTML:
[removed][removed]
What am I doing wrong here?
Thanks!