HTML and CSS Reference
In-Depth Information
If you would like to learn more about Gzip, Chapter 4 , Smaller Components, Book of
Speed, Stoyan Stefanov , found at www.bookofspeed.com/chapter4.html , would be a
good place to start from.
Using Expires header for better cache control
Servers can indicate to browsers how long they can keep files in the cache. This is
pretty useful for static files that don't change frequently, and will reduce your page-
load time. HTML5 Boilerplate's .htaccess file has a set of defaults for most static
files, as shown in the following code snippet:
<IfModule mod_expires.c>
ExpiresActive on
# Perhaps better to whitelist expires rules?
Perhaps.
ExpiresDefault "access
plus 1 month"
# cache.appcache needs re-requests in FF 3.6
(thanks Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest "access
plus 0 seconds"
Search WWH ::




Custom Search