WebPagetest Forums
How To Leverage Browser Caching - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: How To Leverage Browser Caching (/showthread.php?tid=12811)



How To Leverage Browser Caching - seotools - 02-18-2014 06:40 AM

Please Help Me How to leverage cache browsing..

this is message about it

FAILED - (No max-age or expires) - http://seotoolsoft.blogspot.com/


RE: How To Leverage Browser Caching - pmeenan - 02-20-2014 02:11 AM

Any resource that doesn't have an explicit cache-control (pr expires or pragma: no-cache) header will get flagged because you are basically leaving it to the browser to decide how long it can cache the resource locally. Usually for the base HTML people will explicitly put a no-cache header or a very short expires so that users are not stuck with stale content.


RE: How To Leverage Browser Caching - seotools - 02-20-2014 03:06 AM

(02-20-2014 02:11 AM)pmeenan Wrote:  Any resource that doesn't have an explicit cache-control (pr expires or pragma: no-cache) header will get flagged because you are basically leaving it to the browser to decide how long it can cache the resource locally. Usually for the base HTML people will explicitly put a no-cache header or a very short expires so that users are not stuck with stale content.

and what's meta code for it?


RE: How To Leverage Browser Caching - robzilla - 02-20-2014 07:08 AM

You cannot set a custom expiry date on resources served from the blogspot.com domain, since you have no access to the server-side. If you do have access to the <head> section of your pages, the best you can do is add:

Code:
<meta http-equiv="Cache-control" content="public">

The four possible settings are:

Quote:public - may be cached in public shared caches
private - may only be cached in private cache
no-cache - may not be cached
no-store - may be cached but not archived