Keep failing cache test
|
10-10-2014, 12:39 AM
Post: #1
|
|||
|
|||
Keep failing cache test
I keep failing the cache test here with every site I try (although some of them are scoring 100% on pingdom tools). Here is the htaccess code I'm currently using:
Code: Header unset FileETag |
|||
10-10-2014, 11:58 PM
Post: #2
|
|||
|
|||
RE: Keep failing cache test
Do you have a test we can look at?
Andy Using WebPageTest - http://usingwpt.com/ |
|||
10-11-2014, 12:39 AM
Post: #3
|
|||
|
|||
RE: Keep failing cache test | |||
10-11-2014, 04:30 AM
Post: #4
|
|||
|
|||
RE: Keep failing cache test
Looks like something is adding a max-age=0 which will force the browser to make a request for the resource
Cache-Control: max-age=0, proxy-revalidate Andy Using WebPageTest - http://usingwpt.com/ |
|||
10-11-2014, 04:35 AM
Post: #5
|
|||
|
|||
RE: Keep failing cache test
It looks like your FilesMatch rules are kicking in. but the default Cache-Control header you are sending includes max-age = 0. At least for testing it might be worth setting an expires value in the match blocks for js/css and images.
|
|||
10-11-2014, 04:52 AM
Post: #6
|
|||
|
|||
RE: Keep failing cache test
Thanks I took these lines:
Code: <FilesMatch \.(xml|txt|html|js|css)$ > Code: <FilesMatch \.(xml|txt|html)$ > and that did the trick! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)