我刚刚通过一些教程设置了 Apache 缓存,并按照数字海洋
<VirtualHost>
以下是我在每个容器中设置的配置
CacheQuickHandler off
CacheLock on
CacheLockPath /tmp/mod_cache-lock
CacheLockMaxAge 5
CacheIgnoreHeaders Set-Cookie
<Location />
CacheEnable disk
CacheHeader on
CacheDefaultExpire 600
CacheMaxExpire 86400
CacheLastModifiedFactor 0.5
ExpiresActive on
ExpiresDefault "access plus 5 minutes"
Header merge Cache-Control public
FileETag All
</Location>
一天后,一些图片没有出现在网站上,并且cached 0B
显示304 Not Modified
带有响应标头:
HTTP/1.1 304 Not Modified
Date: Fri, 16 Aug 2019 07:06:28 GMT
Server: Apache/2.4.7 (Ubuntu)
Connection: Keep-Alive
Keep-Alive: timeout=5, max=97
ETag: "820f45-3823e-549b6f3b2a540"
Expires: Fri, 16 Aug 2019 07:11:28 GMT
Cache-Control: max-age=300, public
是不是配置有问题?