{"id":1807,"date":"2014-01-08T11:02:37","date_gmt":"2014-01-08T10:02:37","guid":{"rendered":"https:\/\/fsdata.se\/manualer\/?p=1807"},"modified":"2016-04-07T20:56:17","modified_gmt":"2016-04-07T18:56:17","slug":"aktivera-cache-av-filer-iis-output-caching","status":"publish","type":"page","link":"https:\/\/legacy.fsdata.se\/manualer\/hemsida\/windows\/aktivera-cache-av-filer-iis-output-caching\/","title":{"rendered":"Aktivera cache av filer (IIS Output Caching)"},"content":{"rendered":"<p>Det \u00e4r fullt m\u00f6jligt och v\u00e4ldigt enkelt att aktivera cache av filer p\u00e5 sin hemsida om man har ett Windows-konto hos oss. Med en cache sparas dynamiska filer som statistika filer, vilket ger en m\u00e4rkbart snabbare hemsida.<\/p>\n<p>L\u00e4gg till f\u00f6ljande rader i web.config f\u00f6r att aktivera cache:<\/p>\n<pre lang=\"properties\"><?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<configuration>\r\n    <system.webServer>\r\n        <caching>\r\n            <profiles>\r\n                <add extension=\".aspx\" policy=\"CacheForTimePeriod\" kernelCachePolicy=\"DontCache\" duration=\"00:01:00\" \/>\r\n            <\/profiles>\r\n        <\/caching>\r\n    <\/system.webServer>\r\n<\/configuration><\/pre>\n<p>H\u00e4r \u00e4r en f\u00f6rklaring av ovanst\u00e5ende f\u00e4lt:<\/p>\n<ol>\n<li>extention = Den fil\u00e4ndelse som ska hanteras<\/li>\n<li>policy = Hur ska cachen behandlas\n<ol type=\"a\">\n<li>DisableCache: Inaktiverar cache<\/li>\n<li>CacheUntilChange: H\u00e5ll cache tills filen \u00e4ndrats (fungerar inte med dynamiskt inneh\u00e5ll)<\/li>\n<li>CacheForTimePeriod: Hur l\u00e4nge ska cachen vara giltig<\/li>\n<\/ol>\n<\/li>\n<li>kernelCachePolicy = Vi st\u00f6djer inte denna metod<\/li>\n<li>duration =  Tid, se 2:c<\/li>\n<\/ol>\n<p>F\u00f6r mer information kan vi rekommendera f\u00f6ljande artikel hos Microsoft: <a href=\"http:\/\/www.iis.net\/learn\/manage\/managing-performance-settings\/walkthrough-iis-output-caching\">Walkthrough: IIS 7.0 Output Caching <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Det \u00e4r fullt m\u00f6jligt och v\u00e4ldigt enkelt att aktivera cache av filer p\u00e5 sin hemsida om man har ett Windows-konto hos oss. Med en cache sparas dynamiska filer som statistika filer, vilket ger en m\u00e4rkbart snabbare hemsida. L\u00e4gg till f\u00f6ljande rader i web.config f\u00f6r att aktivera cache: H\u00e4r \u00e4r en f\u00f6rklaring av ovanst\u00e5ende f\u00e4lt: extention [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":2620,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":""},"_links":{"self":[{"href":"https:\/\/legacy.fsdata.se\/manualer\/wp-json\/wp\/v2\/pages\/1807"}],"collection":[{"href":"https:\/\/legacy.fsdata.se\/manualer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/legacy.fsdata.se\/manualer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/legacy.fsdata.se\/manualer\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/legacy.fsdata.se\/manualer\/wp-json\/wp\/v2\/comments?post=1807"}],"version-history":[{"count":3,"href":"https:\/\/legacy.fsdata.se\/manualer\/wp-json\/wp\/v2\/pages\/1807\/revisions"}],"predecessor-version":[{"id":1810,"href":"https:\/\/legacy.fsdata.se\/manualer\/wp-json\/wp\/v2\/pages\/1807\/revisions\/1810"}],"up":[{"embeddable":true,"href":"https:\/\/legacy.fsdata.se\/manualer\/wp-json\/wp\/v2\/pages\/2620"}],"wp:attachment":[{"href":"https:\/\/legacy.fsdata.se\/manualer\/wp-json\/wp\/v2\/media?parent=1807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}