{"id":648,"date":"2019-10-23T07:28:48","date_gmt":"2019-10-23T07:28:48","guid":{"rendered":"http:\/\/pwa-for-wp.com\/docs\/?post_type=ht_kb&#038;p=648"},"modified":"2019-10-23T10:37:59","modified_gmt":"2019-10-23T10:37:59","slug":"what-is-cached-time-option-in-pwa-for-wp","status":"publish","type":"ht_kb","link":"https:\/\/pwa-for-wp.com\/docs\/article\/what-is-cached-time-option-in-pwa-for-wp\/","title":{"rendered":"What is &#8220;Cached time&#8221; option in PWA for WP"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Every time a page is visited it is cached locally on their device, and it will still be accessible offline. Pages once cached are served even if the user is offline. <\/li><li><strong>Cached time<\/strong> will describe the browser cache page life duration after this duration cache will be deleted from the browser cache.<\/li><li>If you have static pages then you can increase the time duration as per your need. <\/li><li>This feature browser does not contain unused cached pages.<\/li><li>The benefit of this feature browser memory processing time works fast.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>You will find this option in the <strong>WordPress Dashboard<\/strong> -> Navigate to <strong>PWA<\/strong> -> <strong>Settings<\/strong> -> <strong>Advance <\/strong>-> In this cached time option you need to set the cache time for Html and JS, CSS, JSON like below the screenshot.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"1024\" src=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/1-816x1024.png\" alt=\"\" class=\"wp-image-649\" srcset=\"https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/1-816x1024.png 816w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/1-239x300.png 239w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/1-768x963.png 768w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/1-40x50.png 40w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/1-48x60.png 48w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/1-80x100.png 80w, https:\/\/pwa-for-wp.com\/docs\/wp-content\/uploads\/2019\/10\/1.png 1065w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>In the first field set the cache time for Html content. The default value will be<strong>  3600 <\/strong> seconds(1 hour); You need to enter time in seconds. <\/li><li> In the second field set cache time for JS, CSS, JSON  content. The default value will be <strong>86400<\/strong> in seconds(24 hours); You need to enter time in seconds.<\/li><\/ul>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope we\u2019ve clear your doubts in case If you have any feedback or questions, Just contact us&nbsp;<strong>here and<\/strong>&nbsp;we are always available for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every time a page is visited it is cached locally on their device, and it will still be accessible offline. Pages once cached are served even if the user is offline. Cached time will describe the browser cache page life duration after this duration cache will be deleted from the&#8230;<\/p>\n","protected":false},"author":3,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[7],"ht-kb-tag":[],"class_list":["post-648","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-miscellaneous"],"_links":{"self":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/comments?post=648"}],"version-history":[{"count":22,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/648\/revisions"}],"predecessor-version":[{"id":699,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/648\/revisions\/699"}],"wp:attachment":[{"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/media?parent=648"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=648"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/pwa-for-wp.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}