我用node搭了简单的服务,设置了js和css的cache-control:'max-age=30',但是只有js起作用,css不起作用,css总是重新请求。以下是请求的信息:这是js 的请求信息: 下面是css的请求信息:梵蒂冈之花 浏览1142回答2 2回答 紫衣仙女 忘了说一点,在Safari里起作用,在chrome里不起作用 0 0 0 没找到需要的内容?换个关键词再搜索试
问在Nuxt JS中设置Cache-Control标头在本地主机上有效,但在生产环境中无效ENShareThis从一个小插件起家...
| | | `-- delegates@1.0.0 | | +-- console-control-strings@1.1.0 | | +-- gauge@2.6.0 | | | +-- has-color@0.1.7 | | | +-- object-assign@4.1.0 | | | +-- signal-exit@3.0.0 | | | +-- string-width@1.0.2 | | | | +-- code-point-at@1.0.0 | | | | | `-...
| | | `-- delegates@1.0.0 | | +-- console-control-strings@1.1.0 | | +-- gauge@2.6.0 | | | +-- has-color@0.1.7 | | | +-- object-assign@4.1.0 | | | +-- signal-exit@3.0.0 | | | +-- string-width@1.0.2 | | | | +-- code-point-at@1.0.0 | | | | | `-...
用nodejs写一个静态资源服务器,设置Expires和Cache-Control,但是chrome浏览器无法命中强缓存。node主要代码: {代码...} 浏览器请求:chrome控制台:Safari控制台:可以看到chrome请求时,request headers中有ca...
proxy_cache_path /usr/local/etc/nginx/cache levels=1:2 keys_zone=my_cache:50m;server { listen 80; server_name test.com; location / { proxy_pass http://127.0.0.1:3366; proxy_set_header Host $host; proxy_cache my_cache; } }nodejs代码 response.writeHead(200, { "Cache-Control": 's...
| | +-- console-control-strings@1.1.0 | | +-- gauge@2.6.0 | | | +-- has-color@0.1.7 | | | +-- object-assign@4.1.0 | | | +-- signal-exit@3.0.0 | | | +-- string-width@1.0.2 | | | | +-- code-point-at@1.0.0 ...