如题,
https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Caching#etagif-none-match
,我选择全站缓存,甚至html内容也缓存,因为用户要访问源站速度非常慢,如果仅仅缓存js css那就没意义了。
之前我一直选择更新完文章内容就去cdn源站刷新。
了解到 etag 和 Last-Modified,但是不知道如何配置,请教一下论坛大佬。
我站点目前的返回信息
curl -I 'https://howiehz.top/archives/chinese-blogosphere-list'
HTTP/1.1 200 OK
Date: Sun, 02 Jun 2024 11:18:07 GMT
Content-Type: text/html
content-language: en-US
x-cache: MISS
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=gSdTmB13qR%2FhfEaXwvS16XMYR5eKuGq0dXO4fCFGtNVcSAkT8nGaa1OeIHt2bAjbDel8kwR8r109saXmy04kXAWf3gSXHUA4CvcTsZ6usbe0fM9K2JpQE0Xw8nkfrg%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 88d70a701cbc2acc-LAX
alt-svc: h3=":443"; ma=86400
Content-Length: 59167
Accept-Ranges: bytes
X-NWS-LOG-UUID: 1050208935937668608
Connection: keep-alive
X-Cache-Lookup: Cache Hit
Strict-Transport-Security: max-age=2592000;includeSubDomains