簡體   English   中英

緩存控制無緩存

[英]Cache-Control no cache

我從http://web-sniffer.net/獲得以下內容:

Cache-Control:  no-store, no-cache, must-revalidate, post-check=0, pre-check=0

我使用Cloudflare和Custom Expired Rules進行緩存,但是在瀏覽器中似乎沒有緩存。

為什么會這樣呢?

規則:

# Enable expirations
ExpiresActive On 
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
# CSS
ExpiresByType text/css "access 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
</IfModule>

如果我們在這里知道特定的域名,這將有所幫助,我也建議直接使用CloudFlare打開支持憑單。 然后,我們的支持團隊可以檢查您的特定帳戶設置,但出於明顯的隱私原因,此處不再贅述。

免責聲明:我在CloudFlare工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM