{"id":102,"date":"2011-03-01T17:38:17","date_gmt":"2011-03-01T17:38:17","guid":{"rendered":"http:\/\/www.sitekickr.com\/blog\/?p=102"},"modified":"2011-06-20T15:25:04","modified_gmt":"2011-06-20T15:25:04","slug":"browser-caching-basic","status":"publish","type":"post","link":"https:\/\/www.sitekickr.com\/blog\/browser-caching-basic\/","title":{"rendered":"Browser caching in 60 seconds"},"content":{"rendered":"<p>There are a multitude of articles out there on browser caching. If you&#39;re using Apache as your web server and want to cut to the chase &#8211; implement browser caching on your static content (images, css, javascript) by dropping the code below into your httpd.conf or VirtualHost stanza:<\/p>\n<p><code>ExpiresActive On<br \/>\n\tExpiresByType image\/gif A2592000<br \/>\n\tExpiresByType image\/png A2592000<br \/>\n\tExpiresByType image\/jpg A2592000<br \/>\n\t<\/code><code> ExpiresByType image\/jpeg A2592000<br \/>\n\t<\/code><code>ExpiresByType text\/css A2592000<br \/>\n\t<\/code><code> ExpiresByType application\/javascript A2592000<br \/>\n\t<\/code><code> ExpiresByType application\/x-javascript A2592000<\/p>\n<p>\t<\/code><\/p>\n<p>This will instruct browsers to cache gif, png, jpeg, css and JavaScript content for 30 days.<\/p>\n<p>If you want to understand more, check out the following articles:<\/p>\n<p><a href=\"http:\/\/code.google.com\/speed\/page-speed\/docs\/caching.html#LeverageBrowserCaching\">Leverage Browser Caching<br \/>\n\t<\/a><\/p>\n<p><a href=\"http:\/\/www.mnot.net\/cache_docs\/#SCRIPT\">Caching Tutorial<br \/>\n\t<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a multitude of articles out there on browser caching. If you&#39;re using Apache as your web server and want to cut to the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"amp_status":""},"categories":[41],"tags":[43,92,44,42],"_links":{"self":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/102"}],"collection":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":5,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":276,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions\/276"}],"wp:attachment":[{"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sitekickr.com\/blog\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}