{"id":217,"date":"2022-05-16T23:09:44","date_gmt":"2022-05-16T21:09:44","guid":{"rendered":"https:\/\/blue-marketing.pl\/\/?p=217"},"modified":"2022-05-17T12:57:05","modified_gmt":"2022-05-17T10:57:05","slug":"do-i-need-to-do-anything-or-does-my-site-just-get-a-free-boost","status":"publish","type":"post","link":"https:\/\/blue-marketing.pl\/en\/uncategorized\/217\/","title":{"rendered":"Do I Need To Do Anything, Or Does My Site Just Get A Free Boost?"},"content":{"rendered":"\n<p>Browser makers have to make sure it\u2019s safe to just restore pages like this, and the problem is many sites are not written with the expectation that a page can be restored like this and think (not entirely unreasonably!) that when the page is navigated away from that the user isn\u2019t coming back without a full page reload.<\/p>\n\n\n\n<p>For example, some pages may register an&nbsp;<code>unload event listener<\/code>&nbsp;in JavaScript to perform some clean-up tasks under the assumption the user is finished with this page. That doesn\u2019t work well if the page is then restored from the Back\/Forward Cache. Now, to be honest, the&nbsp;<code>unload event listener<\/code>&nbsp;has been seen as a bad practice for a while now as it is not reliably fired (e.g. if the browser crashes, or the browser is backgrounded on a mobile and then killed), but the Back\/Forward cache gives a more pressing reason why it should be avoided because browsers will not use the Back\/Forward Cache if your page or any of its resources uses an&nbsp;<code>unload event listener<\/code>.<\/p>\n\n\n\n<p>There are a number of other reasons why your page might not be eligible for the Back\/Forward cache. Counterintuitively, for a web performance feature, some of these reasons are due to other web performance features:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Browser makers have to make sure it\u2019s safe to just restore pages like this, and the problem is many sites are not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":182,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-217","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/blue-marketing.pl\/en\/wp-json\/wp\/v2\/posts\/217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blue-marketing.pl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-marketing.pl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-marketing.pl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-marketing.pl\/en\/wp-json\/wp\/v2\/comments?post=217"}],"version-history":[{"count":1,"href":"https:\/\/blue-marketing.pl\/en\/wp-json\/wp\/v2\/posts\/217\/revisions"}],"predecessor-version":[{"id":221,"href":"https:\/\/blue-marketing.pl\/en\/wp-json\/wp\/v2\/posts\/217\/revisions\/221"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-marketing.pl\/en\/wp-json\/wp\/v2\/media\/182"}],"wp:attachment":[{"href":"https:\/\/blue-marketing.pl\/en\/wp-json\/wp\/v2\/media?parent=217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-marketing.pl\/en\/wp-json\/wp\/v2\/categories?post=217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-marketing.pl\/en\/wp-json\/wp\/v2\/tags?post=217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}