Cache The Root?
|
04-05-2012, 04:35 AM
Post: #1
|
|||
|
|||
![]()
Something keeps bugging me, I get a 'B' in the 'Cache static content' category and according to the results it is because I am not caching the 'root' of the entire website.
There used to be lots more stuff not cached, but after fiddling I went from a 'D' to my current 'B'. But, the only problem is that I am not caching the domain name itself, not any particular file. Is there some form of addition I need to make in my .htaccess to get it to cache the 'root' of the site. Like, can I, somehow, set something to cache just the 'http://www.skepticality.com/' root? |
|||
04-05-2012, 05:18 AM
(This post was last modified: 04-05-2012 05:20 AM by doc_uk.)
Post: #2
|
|||
|
|||
RE: Cache The Root?
You cannot cache a domain name per se. It needs to be caching the page that the server directs to for the root, usually something like index.php, index.asp or index.htm
|
|||
04-05-2012, 10:39 PM
Post: #3
|
|||
|
|||
RE: Cache The Root?
That makes sense!
Ok, now to figure out which page that would be in Wordpress. Funny enough I have a good caching plugin, would have assumed it would have done that as part of its voodoo! ![]() (04-05-2012 05:18 AM)doc_uk Wrote: You cannot cache a domain name per se. It needs to be caching the page that the server directs to for the root, usually something like index.php, index.asp or index.htm |
|||
04-06-2012, 01:21 AM
Post: #4
|
|||
|
|||
RE: Cache The Root?
Depending on how dynamic your site is you might not want to cache the base page - it is getting flagged by WebPagetest because there aren't any headers that explicitly say NOT to cache it (pragma: no-cache for example or an expires in the past).
|
|||
04-09-2012, 09:09 PM
Post: #5
|
|||
|
|||
RE: Cache The Root?
Ah, so I should put in a header, manually, to explicitly tell browsers to cache it as well?
|
|||
04-13-2012, 05:04 AM
Post: #6
|
|||
|
|||
RE: Cache The Root?
Only if you REALLY want the html root to be cached. Otherwise you should put in headers to tell the browser explicitly NOT to cache it.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)