Accept-Encoding:gzip
/ Content-Encoding:gzip
<IfModule mod_deflate.c>
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE "application/javascript" "application/json" \
"text/css" "text/html" "text/xml" [...]
</IfModule>
</IfModule>
server.modules += ( "mod_compress" )
compress.filetype = ("application/javascript", "application/json", \
"text/css", "text/html", "text/xml", [...] )
gzip on;
gzip_types application/javascript application/json text/css text/html text/xml [...];
Deux headers
Expires: Thu, 04 May 2014 20:00:00 GMT
✘Cache-Control: max-age=3600, must-revalidate
✔Vérification que le client possède la dernière version
Deux couples de headers
Last-Modified: Mon, 04 May 2014 02:28:12 GMT
/ If-Modified-Since
✔ETag: "3e86-410-3596fbbc"
/ If-None-Match
✘There are only two hard things in Computer Science: cache invalidation and naming things.
Nouvelles urls (timestamp, hash, etc)