mod-expires Questions
3
Solved
I have recently deployed a website on a VPS that supports Apache2, and was working on performance improvement suggestions by YSlow.
Among those improvements were using mod_deflate and mod_expires, ...
Landman asked 28/10, 2015 at 21:33
2
All of the expires headers articles I've looked at give more or less the following solution:
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
Expi...
Swansdown asked 24/3, 2010 at 15:8
4
Solved
I can't get the expire header on JS files to work properly.. It works fine on eg CSS files!?
Could anybody tell me what Im doing wrong? :(
htaccess
ExpiresActive on
ExpiresDefault A0
ExpiresByTy...
Dichroite asked 14/10, 2012 at 12:13
3
Solved
I'm trying to cache some files using a .htaccess file for Apache2. I want to cache a particular folder longer than anything else, so i've been trying to use the FilesMatch directive like this:
&l...
Tollhouse asked 15/5, 2009 at 11:13
2
Solved
I'd like to set expiry date for fonts. Following definition isn't working on apache 2.2.15.
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType application/font-woff2 "access...
Ennead asked 3/7, 2016 at 1:33
10
Solved
After reading many articles and some questions on here, I finally succeded in activating the Apache mod_expires to tell the browser it MUST cache images for 1 year.
<filesMatch "\.(ico|gif|jpg|...
Inspect asked 6/4, 2012 at 20:13
4
Solved
I want to check whether mod_headers and mod_expires modules enabled or not in my server
Is there a way available to list apache enabled/disabled modules using some php function just like we list p...
Iniquity asked 9/1, 2012 at 20:13
1
Solved
This .htaccess file:
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 4 month"
</IfModule>
<IfModule mod_headers.c>
Header merge X-ModHeaders "Yes, it is ...
Brahmanism asked 21/8, 2015 at 18:47
1
Solved
Ok, I checked a lot of websites about how to manage the browser's cache memory with a .htaccess file, but it is still very not clear to me.
I want to cache specific files for one month. For the re...
Rene asked 28/11, 2014 at 13:54
4
Solved
In Apache's mod_expires module, there is the Expires directive with two base time periods, access, and modification.
ExpiresByType text/html "access plus 30 days"
understandably means that the c...
Asparagus asked 18/2, 2009 at 20:55
2
Solved
I am running PHP on Apache, and am confused about how to implement server-side caching, in order to make the site load faster.
What is the difference between the Expires, Last-Modified and ETag he...
Barghest asked 16/3, 2011 at 6:43
2
Solved
I have a handful of directories with content which will never change.
Is it possible to create .htaccess file which tells the browser that anything in this directory and sub- directories can be c...
Whoosh asked 25/5, 2013 at 14:55
3
Solved
I want to set cache-headers using the mod_expires module from apache. My configuration looks somewhat like this:
<LocationMatch ^/static >
ExpiresDefault "access plus 1 years"
</Location...
Casares asked 28/10, 2011 at 13:50
3
My PHP code:
$expires_date = date('D, j F Y H:i:s', strtotime('now + 10 years')) . ' GMT';
header("Expires: $expires_date");
header('Content-type: text/javascript');
echo 'hello world';
When I...
Polyphemus asked 17/10, 2012 at 13:35
1
Solved
This page says this:
If a response includes both an Expires header and a max-age directive,
the max-age directive overrides the Expires header, even if the
Expires header is more restrictive
...
Propagate asked 28/8, 2012 at 17:45
1
Solved
I want to cache images and other files on my site, so what I did is made sure mod_headers and mod_expires with :-
/usr/sbin/httpd -l
then edited .htaccess to be:-
ExpiresActive On
ExpiresDefaul...
Toastmaster asked 29/3, 2012 at 20:28
1
Solved
I have XAMPP, and I can see the file mod_expires.so under path
...XAMPP\apache\modules\mod_expires.so
However, I believe the module is not loading for two reasons:
first: mod_expires is not list...
Maniac asked 22/5, 2012 at 19:37
4
Solved
How can I get static content on Apache to be {cached by browser} and not {checked for freshness {with every request}}?
I'm working on a website hosted on Apache webserver. Recently, I was testing s...
Sidonius asked 15/1, 2009 at 14:48
1
Apache is sending Cache-Control headers for 3## status codes, like 302 redirects. This is causing Firefox (possibly starting with Firefox 5) to cache the 302 redirects--which results in an infinite...
Ours asked 1/8, 2011 at 20:44
3
Solved
For the purposes of CDN invalidation I need to add a prefix to the path element of a site's URL. This is changed whenever a new version of the asset is released.
The URL is then rewritten using m...
Etienne asked 30/10, 2011 at 21:21
1
Solved
I have updated my .htaccess file to include the following:
<FilesMatch "\.(css|js)$">
ExpiresDefault "access plus 1 month"
</FilesMatch>
I am trying to tell the client that all css a...
Merrell asked 12/3, 2011 at 18:48
1
Solved
I can't figure out why plain old JPEG images (about a dozen, < 10 KB each) in a website I'm working on won't take the cache-control headers they're being force feed. The .htaccess rules I'm usin...
Crosspiece asked 1/3, 2011 at 4:24
1
Solved
I am trying to set Expire header to 2 hours from access for text/html by using mod_expires like that:
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 2 hours"
Expire...
Pachydermatous asked 23/12, 2010 at 17:30
3
Solved
I know that I can add expires header using mod_expires. However, what can I do if the Apache server doesn't have mod_expires installed and I don't want to route the access to the files through a sc...
Richardo asked 2/9, 2010 at 10:5
1
© 2022 - 2024 — McMap. All rights reserved.