{"id":502653,"date":"2022-11-22T17:57:02","date_gmt":"2022-11-22T15:57:02","guid":{"rendered":"https:\/\/palmberg.io\/?post_type=kunskapsbank&#038;p=502653"},"modified":"2022-11-22T17:57:02","modified_gmt":"2022-11-22T15:57:02","slug":"verifiera-att-servercachen-fungerar","status":"publish","type":"kb","link":"https:\/\/hexabyte.se\/en\/kb\/verifiera-att-servercachen-fungerar\/","title":{"rendered":"Verify that the server cache is working"},"content":{"rendered":"<p>If you want to verify that your website is loading via cache, you can do the following. Note that the server must be configured to send the status in the header response to the visitor&#039;s browser.<\/p>\n\n\n\n<p>This is an advanced guide.<\/p>\n\n\n\n<div class=\"schema-how-to wp-block-yoast-how-to-block\"><p class=\"schema-how-to-total-time\"><span class=\"schema-how-to-duration-time-text\">Time needed:&nbsp;<\/span>5 minutes<\/p><p class=\"schema-how-to-description\">This is how you verify if the page is loaded via cache, using the header in the response from the server.<\/p> <ol class=\"schema-how-to-steps\"><li class=\"schema-how-to-step\" id=\"how-to-step-1669131794118\"><strong class=\"schema-how-to-step-name\">Open Developer tools in your browser and go to the network tab<\/strong> <p class=\"schema-how-to-step-text\">Right-click in the browser window and select <strong>Review elements<\/strong> (<strong>Inspect<\/strong> in Chrome and Firefox)<br\/>Navigate to the Network tab<\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1669132139081\"><strong class=\"schema-how-to-step-name\">Reload the website <\/strong> <p class=\"schema-how-to-step-text\">Select any file in the left list and check the Headers tab<br\/>When you scroll down you will find a parameter called something like<strong> x cache status<\/strong> and if the value is <strong>HERE<\/strong> then your page fetch was delivered from the cache.<img fetchpriority=\"high\" decoding=\"async\" width=\"1850\" height=\"628\" src=\"https:\/\/hexabyte.se\/wp-content\/uploads\/2022\/11\/servercache-hit.png\" class=\"attachment-full size-full\" alt=\"Servercache HIT Nginx FastCGI\" style=\"max-width: 100%; height: auto;\" srcset=\"https:\/\/hexabyte.se\/wp-content\/uploads\/2022\/11\/servercache-hit.png 1850w, https:\/\/hexabyte.se\/wp-content\/uploads\/2022\/11\/servercache-hit-385x131.png 385w, https:\/\/hexabyte.se\/wp-content\/uploads\/2022\/11\/servercache-hit-1024x348.png 1024w, https:\/\/hexabyte.se\/wp-content\/uploads\/2022\/11\/servercache-hit-768x261.png 768w, https:\/\/hexabyte.se\/wp-content\/uploads\/2022\/11\/servercache-hit-1536x521.png 1536w\" sizes=\"(max-width: 1850px) 100vw, 1850px\" \/><\/p> <\/li><\/ol><\/div>","protected":false},"parent":0,"menu_order":0,"template":"","class_list":["post-502653","kb","type-kb","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Verifiera att servercachen fungerar<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hexabyte.se\/en\/kb\/verifiera-att-servercachen-fungerar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Verifiera att servercachen fungerar\" \/>\n<meta property=\"og:description\" content=\"Om du vill verifiera att din hemsida laddas via cache kan du g\u00f6ra f\u00f6ljande. Observera att servern m\u00e5ste vara konfigurerad f\u00f6r att skicka med statusen i header-responsen till bes\u00f6karens webbl\u00e4sare. Detta \u00e4r en avancerad guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hexabyte.se\/en\/kb\/verifiera-att-servercachen-fungerar\/\" \/>\n<meta property=\"og:site_name\" content=\"Hexabyte\" \/>\n<meta property=\"og:image\" content=\"https:\/\/palmberg.io\/wp-content\/uploads\/2022\/11\/servercache-hit.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/\",\"url\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/\",\"name\":\"Verifiera att servercachen fungerar\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/palmberg.io\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/servercache-hit.png\",\"datePublished\":\"2022-11-22T15:57:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/#primaryimage\",\"url\":\"https:\\\/\\\/palmberg.io\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/servercache-hit.png\",\"contentUrl\":\"https:\\\/\\\/palmberg.io\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/servercache-hit.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hem\",\"item\":\"https:\\\/\\\/hexabyte.se\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kunskapsbank\",\"item\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Verifiera att servercachen fungerar\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#website\",\"url\":\"https:\\\/\\\/hexabyte.se\\\/\",\"name\":\"Hexabyte\",\"description\":\"Serverl\u00f6sningar\",\"publisher\":{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hexabyte.se\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#organization\",\"name\":\"Hexabyte AB\",\"url\":\"https:\\\/\\\/hexabyte.se\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hexabyte.se\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/hexabyte-clear.svg\",\"contentUrl\":\"https:\\\/\\\/hexabyte.se\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/hexabyte-clear.svg\",\"width\":318,\"height\":57,\"caption\":\"Hexabyte AB\"},\"image\":{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"HowTo\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/#howto-1\",\"name\":\"Verifiera att servercachen fungerar\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/\"},\"description\":\"S\u00e5 h\u00e4r verifierar du om sidan laddas via cache, med hj\u00e4lp av headern i responsen fr\u00e5n servern.\",\"totalTime\":\"P0DT0H5M\",\"step\":[{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/#how-to-step-1669131794118\",\"name\":\"\u00d6ppna Developer tools i din webbl\u00e4sare och g\u00e5 till n\u00e4tverksfliken\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"H\u00f6gerklicka i webbl\u00e4sarf\u00f6nstret och v\u00e4lj Granska element (Inspektera i Chrome och Firefox)Navigera till N\u00e4tverksfliken\"}]},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/#how-to-step-1669132139081\",\"name\":\"Ladda om hemsidan\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"V\u00e4lj valfri fil i v\u00e4nsterlistan och kolla p\u00e5 fliken HeadersN\u00e4r du scrollar ner hittar du en parameter som heter n\u00e5got i stil med x-cache-status och om v\u00e4rdet \u00e4r HIT s\u00e5 levererades din sidh\u00e4mtning fr\u00e5n cachen.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/verifiera-att-servercachen-fungerar\\\/#schema-image-e784f595f829bd09267dc9b17c080551\",\"url\":\"https:\\\/\\\/palmberg.io\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/servercache-hit.png\",\"contentUrl\":\"https:\\\/\\\/palmberg.io\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/servercache-hit.png\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Verify that the server cache is working","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hexabyte.se\/en\/kb\/verifiera-att-servercachen-fungerar\/","og_locale":"en_US","og_type":"article","og_title":"Verifiera att servercachen fungerar","og_description":"Om du vill verifiera att din hemsida laddas via cache kan du g\u00f6ra f\u00f6ljande. Observera att servern m\u00e5ste vara konfigurerad f\u00f6r att skicka med statusen i header-responsen till bes\u00f6karens webbl\u00e4sare. Detta \u00e4r en avancerad guide.","og_url":"https:\/\/hexabyte.se\/en\/kb\/verifiera-att-servercachen-fungerar\/","og_site_name":"Hexabyte","og_image":[{"url":"https:\/\/palmberg.io\/wp-content\/uploads\/2022\/11\/servercache-hit.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/","url":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/","name":"Verify that the server cache is working","isPartOf":{"@id":"https:\/\/hexabyte.se\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/#primaryimage"},"image":{"@id":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/#primaryimage"},"thumbnailUrl":"https:\/\/palmberg.io\/wp-content\/uploads\/2022\/11\/servercache-hit.png","datePublished":"2022-11-22T15:57:02+00:00","breadcrumb":{"@id":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/#primaryimage","url":"https:\/\/palmberg.io\/wp-content\/uploads\/2022\/11\/servercache-hit.png","contentUrl":"https:\/\/palmberg.io\/wp-content\/uploads\/2022\/11\/servercache-hit.png"},{"@type":"BreadcrumbList","@id":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Hem","item":"https:\/\/hexabyte.se\/"},{"@type":"ListItem","position":2,"name":"Kunskapsbank","item":"https:\/\/hexabyte.se\/kb\/"},{"@type":"ListItem","position":3,"name":"Verifiera att servercachen fungerar"}]},{"@type":"WebSite","@id":"https:\/\/hexabyte.se\/#website","url":"https:\/\/hexabyte.se\/","name":"Hexabytes","description":"Server solutions","publisher":{"@id":"https:\/\/hexabyte.se\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hexabyte.se\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hexabyte.se\/#organization","name":"Hexabyte AB","url":"https:\/\/hexabyte.se\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hexabyte.se\/#\/schema\/logo\/image\/","url":"https:\/\/hexabyte.se\/wp-content\/uploads\/2023\/12\/hexabyte-clear.svg","contentUrl":"https:\/\/hexabyte.se\/wp-content\/uploads\/2023\/12\/hexabyte-clear.svg","width":318,"height":57,"caption":"Hexabyte AB"},"image":{"@id":"https:\/\/hexabyte.se\/#\/schema\/logo\/image\/"}},{"@type":"HowTo","@id":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/#howto-1","name":"Verify that the server cache is working","mainEntityOfPage":{"@id":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/"},"description":"This is how you verify if the page is loaded via cache, using the header in the response from the server.","totalTime":"P0DT0H5M","step":[{"@type":"HowToStep","url":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/#how-to-step-1669131794118","name":"\u00d6ppna Developer tools i din webbl\u00e4sare och g\u00e5 till n\u00e4tverksfliken","itemListElement":[{"@type":"HowToDirection","text":"H\u00f6gerklicka i webbl\u00e4sarf\u00f6nstret och v\u00e4lj Granska element (Inspektera i Chrome och Firefox)Navigera till N\u00e4tverksfliken"}]},{"@type":"HowToStep","url":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/#how-to-step-1669132139081","name":"Ladda om hemsidan","itemListElement":[{"@type":"HowToDirection","text":"V\u00e4lj valfri fil i v\u00e4nsterlistan och kolla p\u00e5 fliken HeadersN\u00e4r du scrollar ner hittar du en parameter som heter n\u00e5got i stil med x-cache-status och om v\u00e4rdet \u00e4r HIT s\u00e5 levererades din sidh\u00e4mtning fr\u00e5n cachen."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hexabyte.se\/kb\/verifiera-att-servercachen-fungerar\/#schema-image-e784f595f829bd09267dc9b17c080551","url":"https:\/\/palmberg.io\/wp-content\/uploads\/2022\/11\/servercache-hit.png","contentUrl":"https:\/\/palmberg.io\/wp-content\/uploads\/2022\/11\/servercache-hit.png"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/hexabyte.se\/en\/wp-json\/wp\/v2\/kb\/502653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hexabyte.se\/en\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/hexabyte.se\/en\/wp-json\/wp\/v2\/types\/kb"}],"wp:attachment":[{"href":"https:\/\/hexabyte.se\/en\/wp-json\/wp\/v2\/media?parent=502653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}