日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

缓存问题

發布時間:2025/5/22 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 缓存问题 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

網頁圖片在微信加載的時候位置偏移。 最后找到原因之前調試的時候圖片位置沒定好,加載時訪問緩存所以偏移 在html頭部加上

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidat>

解釋

<!--The "expires" "http-equiv" meta-tag can be used to controlthe cacheing of pages with Netscape 3.0 and later browsers.The 'content="0"' form tells the browser to not cache thepage at all. --> <meta http-equiv="expires" content="0"> <meta http-equiv="expires" content="Tue, 14 Mar 2000 12:45:26 GMT"> <!--The "pragma no-cache" http-equiv meta-tag was introducedin the HTTP/1.1 specification. Not all browsers or proxyagents may support these operations. To be safe you maywant to specify both expires and pragma in the file. --> <meta http-equiv="pragma" content="no-cache"><!--The "Cache-Control" http-equiv meta-tag was introduced inthe HTTP/1.1 specification. The allowed "content" valuesinclude:* public - may be cached in public shared caches* private - may only be cached in private (client) cache* no-cache - may not be cached* no-store - may be cached but no archivedCache-Control modifiers include:* no-transform - proxy servers are not allowed to transformthe cached data.* must-revalidate - proxy servers and other caching mechanismsmust revalidate the original file each time the file isaccessed.* proxy-revalidate - same as must-revalidate, but it onlyapplies to proxy servers.* max-age=<seconds> - client/browser is willing to accepta page that is more recent than the number of secondsindicated.* s-maxage=<seconds> - same as max-age but applies to sharedproxy servers and other shared caching mechanisms.The directive CACHE-CONTROL:NO-CACHE indicates cachedinformation should not be used and instead requests shouldbe forwarded to the origin server. This directive has thesame semantics as the PRAGMA:NO-CACHE.Clients/Browsers SHOULD include both "pragma no-cache" and"cache-control no-cache" http-equiv meta-tags when used witha server not known to be HTTP/1.1 compliant. --> <meta http-equiv="cache-control" content="no-cache, must-revalidate"><!--Be aware that some search engines will remove pages fromtheir indexes based on the "expires" meta-tag. Thisimplies that pages that identify a 'content="0"' form maynot be indexed at all. -->

有時間看看http協議

?

7.28發現加meta也沒有什么卵用,緩存還是要刪了微信重新安裝

?

轉載于:https://www.cnblogs.com/cyanqq/p/4615360.html

總結

以上是生活随笔為你收集整理的缓存问题的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。