【发布时间】:2020-06-04 12:53:55
【问题描述】:
您好,我想在所有文件上放置“一年”的缓存,除了 ìndex.html 我想要 Cache-Control: no-cache
但我得到:
我希望最后一行覆盖 default_expiration 但我得到:
cache-control: no-cache
cache-control: public, max-age=31536000
我的app.yaml
runtime: nodejs12
default_expiration: '365d'
env_variables:
environment: '--prod'
handlers:
- url: /
static_files: myproject/index.html
upload: myproject/index.html
http_headers:
Cache-Control: no-cache
在 index.html....两者同时你知道如何只有第一个标题吗?
【问题讨论】:
标签: google-app-engine cache-control no-cache