Tagged Questions
2
votes
2answers
350 views
htaccess for Leverage browser caching not working
I am having issues with Leverage browser caching.
I have created this .htaccess file and am using it on my server but it doesnt appear to be working, i copied this from here ...
0
votes
1answer
53 views
Change PDF cache rate or a solution to download vs open PDF in new window?
I have done lots of searching on here and applied a few of the methods mentioned without any luck.
My problem is a site I manage, the client uploads a new PDF under the same file name on a weekly ...
1
vote
0answers
100 views
Why is my htaccess rule still producing gtmetrix, yslow expire headers errors?
I have a rule set up in my .htaccess on a WordPress site. It looks like this:
# manual caching - force use of browser cache
FileETag MTime Size
<ifmodule mod_expires.c>
<filesmatch ...
0
votes
1answer
506 views
Internal server error after editing .htaccess in CakePHP
I want to disable the browser cache for CSS, images and scripts by adding this code to webroot/.htaccess file:
<FilesMatch "(.)*.(css|js|jpg|jpeg|gif|png)$">
Header set Cache-Control ...
0
votes
0answers
54 views
re-cached static content when I reupload files with htaccess htaccess mod_expires
With reference to the post at .htaccess cache static content (unless modified)?,
I would like to ask whether coding below will let it re-cached when I re-upload those files? I ask that because I may ...
3
votes
2answers
4k views
Leverage browser caching, how on apache or .htaccess?
Not sure what to do here?? I have a huge list of files that Google Speed Page said to "Leverage Browser Caching".. but I don't know how? Do I mess or change the Apache config file (below) or do I put ...
1
vote
3answers
285 views
Caching not working in HTTPS
I had previously asked this question and mistakenly thought my problem didn't really exist (see: Caching and HTTPS). I was wrong; the problem does exist.
Here's the description of my problem:
When ...
0
votes
1answer
63 views
Expires directive - modification base VS Access base
From what I know this:
ExpiresByType text/html "access plus 30 days"
will make the browser cache request for fresh content after storing the content die 30 days.
But with:
ExpiresByType ...
1
vote
1answer
573 views
.htaccess caching with FilesMatch
I need to make browser caching with htaccess file.
From this question I found out how to add extensions to htaccess file.
<FilesMatch "\.(js|jpeg|jpg)$">
But I need to add extensions. But ...
2
votes
1answer
4k views
Can I force .htaccess to refresh?
We are moving a site from one CMS to another. The .htaccess file has been changed and it needs to be refreshed for the new site to work right. From what I understand the .htaccess file will only be ...
0
votes
1answer
256 views
The best values for Leverage Browser Caching?
I am attempting to speed up my website by changing the .htacces file browser leverage values.
I am not sure what values to use? ie one week, one month or more. I am currenlty designing my website, so ...
0
votes
1answer
2k views
Leverage browser caching | modifying .htaccess file | - not working for javascript files
I am trying to modify my .htaccess file by specifying an expiration for resources.
It has worked for images but not for javascript files. When running GTMetrix it still recommends that the javascript ...
0
votes
2answers
551 views
How do you set the cache to expire after modification?
I'm using an .htaccess file to set the headers of a website. I want to know how to set the files cache to expire when after a modification has been made on them. Is this possible?
i.e. Will this ...
2
votes
1answer
1k views
Google Speed Leverage browser caching
I got this error from Google Speed test:
The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:
...
0
votes
0answers
169 views
Browser cache does't work
i'm using some directives in the htaccess using mod_expires to set the cache of js files:
ExpiresActive On
<FilesMatch "\.(js)$">
ExpiresDefault "access plus 3 days"
Header append Cache-Control ...