{"id":23,"date":"2010-11-05T10:05:24","date_gmt":"2010-11-05T10:05:24","guid":{"rendered":"http:\/\/www.siteguru.co.uk\/musings\/?p=23"},"modified":"2013-02-22T15:27:35","modified_gmt":"2013-02-22T15:27:35","slug":"template-update","status":"publish","type":"post","link":"http:\/\/www.siteguru.co.uk\/musings\/2010\/11\/template-update\/","title":{"rendered":"Template Update"},"content":{"rendered":"<p>Morning all! \ud83d\ude42<\/p>\n<p>I loaded this blog on another PC this morning and noticed that yesterday&#8217;s post didn&#8217;t appear until I did a Ctrl-F5 to force a refresh. This means the blog template wasn&#8217;t refreshing, so what was displayed came from the browser cache.<\/p>\n<p>To that end I have update the header.php page of the template to add the following lines, so as to force the browser to retrieve the latest info rather than reading from cache. I hope others may find this useful.<\/p>\n<div id=\"_mcePaste\"><span style=\"color: #993300;\">&lt;meta http-equiv=&#8221;Last-Modified&#8221; content=&#8221;&lt;?php echo gmdate(&#8220;D, d M Y H:i:s&#8221;) . &#8221; GMT&#8221;?&gt;&#8221; \/&gt;<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #993300;\">&lt;meta http-equiv=&#8221;Cache-Control&#8221; content=&#8221;no-cache, must-revalidate&#8221; \/&gt;<\/span><\/div>\n<div id=\"_mcePaste\"><span style=\"color: #993300;\">&lt;meta http-equiv=&#8221;Pragma&#8221; content=&#8221;no-cache&#8221; \/&gt;<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Morning all! \ud83d\ude42 I loaded this blog on another PC this morning and noticed that yesterday&#8217;s post didn&#8217;t appear until I did a Ctrl-F5 to force a refresh. This means the blog template wasn&#8217;t refreshing, so what was displayed came from the browser cache. To that end I have update the header.php page of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[14,13],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-techystuff","tag-template","tag-wordpress"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1bz8g-n","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.siteguru.co.uk\/musings\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.siteguru.co.uk\/musings\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.siteguru.co.uk\/musings\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.siteguru.co.uk\/musings\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.siteguru.co.uk\/musings\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":4,"href":"http:\/\/www.siteguru.co.uk\/musings\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":147,"href":"http:\/\/www.siteguru.co.uk\/musings\/wp-json\/wp\/v2\/posts\/23\/revisions\/147"}],"wp:attachment":[{"href":"http:\/\/www.siteguru.co.uk\/musings\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.siteguru.co.uk\/musings\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.siteguru.co.uk\/musings\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}