Caching 缓存不适用于反向代理?

Caching 缓存不适用于反向代理?,caching,reverse-proxy,apache2.4,Caching,Reverse Proxy,Apache2.4,我无法缓存来自反向代理url的某些文件。 下面列出了来自记录器的日志 [Wed Jan 15 06:40:49.366812 2014] [cache:debug] [pid 2381:tid 140215825839872] cache_storage.c(664): [client 107.20.138.104:45231] AH00698: cache: Key for entity /store/info.js?(null) is http://tweetwood.mystoreliv

我无法缓存来自反向代理url的某些文件。 下面列出了来自记录器的日志

 [Wed Jan 15 06:40:49.366812 2014] [cache:debug] [pid 2381:tid 140215825839872] cache_storage.c(664): [client 107.20.138.104:45231] AH00698: cache: Key for entity /store/info.js?(null) is http://tweetwood.mystorelive.com/store/info.js?
        [Wed Jan 15 06:40:49.366898 2014] [cache_disk:debug] [pid 2381:tid 140215825839872] mod_cache_disk.c(572): [client 107.20.138.104:45231] AH00709: Recalled cached URL info header http://tweetwood.mystorelive.com/store/info.js?
        [Wed Jan 15 06:40:49.366921 2014] [cache_disk:debug] [pid 2381:tid 140215825839872] mod_cache_disk.c(884): [client 107.20.138.104:45231] AH00720: Recalled headers for URL http://tweetwood.mystorelive.com/store/info.js?
        [Wed Jan 15 06:40:49.366958 2014] [cache:debug] [pid 2381:tid 140215825839872] cache_storage.c(359): [client 107.20.138.104:45231] AH00695: Cached response for /store/info.js isn't fresh. Adding conditional request headers.
        [Wed Jan 15 06:40:49.366971 2014] [cache:debug] [pid 2381:tid 140215825839872] mod_cache.c(486): [client 107.20.138.104:45231] AH00757: Adding CACHE_SAVE filter for /store/info.js
        [Wed Jan 15 06:40:49.366982 2014] [cache:debug] [pid 2381:tid 140215825839872] mod_cache.c(520): [client 107.20.138.104:45231] AH00759: Adding CACHE_REMOVE_URL filter for /store/info.js
        [Wed Jan 15 06:40:49.366993 2014] [proxy:debug] [pid 2381:tid 140215825839872] mod_proxy.c(1100): [client 107.20.138.104:45231] AH01143: Running scheme http handler (attempt 0)
        [Wed Jan 15 06:40:49.367007 2014] [proxy:debug] [pid 2381:tid 140215825839872] proxy_util.c(2020): AH00942: HTTP: has acquired connection for (localhost)
        [Wed Jan 15 06:40:49.367017 2014] [proxy:debug] [pid 2381:tid 140215825839872] proxy_util.c(2072): [client 107.20.138.104:45231] AH00944: connecting http://localhost:3000/store/info.js to localhost:3000
        [Wed Jan 15 06:40:49.367027 2014] [proxy:debug] [pid 2381:tid 140215825839872] proxy_util.c(2194): [client 107.20.138.104:45231] AH00947: connected /store/info.js to localhost:3000
        [Wed Jan 15 06:40:49.591935 2014] [proxy:debug] [pid 2381:tid 140215825839872] proxy_util.c(2035): AH00943: http: has released connection for (localhost)
        [Wed Jan 15 06:40:49.592815 2014] [deflate:debug] [pid 2381:tid 140215825839872] mod_deflate.c(764): [client 107.20.138.104:45231] AH01384: Zlib: Compressed 304058 to 38873 : URL /store/info.js
        [Wed Jan 15 06:40:49.593047 2014] [cache:debug] [pid 2381:tid 140215825839872] mod_cache.c(1326): [client 107.20.138.104:45231] AH00769: cache: Caching url: /store/info.js
        [Wed Jan 15 06:40:49.593067 2014] [cache:debug] [pid 2381:tid 140215825839872] mod_cache.c(1332): [client 107.20.138.104:45231] AH00770: cache: Removing CACHE_REMOVE_URL filter.
        [Wed Jan 15 06:40:49.593844 2014] [cache_disk:debug] [pid 2381:tid 140215825839872] mod_cache_disk.c(1349): [client 107.20.138.104:45231] AH00737: commit_entity: Headers and body for URL http://tweetwood.mystorelive.com/store/info.js? cached.
        [Wed Jan 15 06:40:49.951416 2014] [proxy:debug] [pid 2380:tid 140215809054464] proxy_util.c(2035): AH00943: http: has released connection for (localhost)
        [Wed Jan 15 06:40:49.952371 2014] [deflate:debug] [pid 2380:tid 140215809054464] mod_deflate.c(764): [client 118.67.252.150:31420] AH01384: Zlib: Compressed 340236 to 40155 : URL /store/info.js, referer: http://tweetwood.mystorelive.com/
        [Wed Jan 15 06:40:49.952585 2014] [cache:debug] [pid 2380:tid 140215809054464] mod_cache.c(1326): [client 118.67.252.150:31420] AH00769: cache: Caching url: /store/info.js, referer: http://tweetwood.mystorelive.com/
        [Wed Jan 15 06:40:49.952605 2014] [cache:debug] [pid 2380:tid 140215809054464] mod_cache.c(1332): [client 118.67.252.150:31420] AH00770: cache: Removing CACHE_REMOVE_URL filter., referer: http://tweetwood.mystorelive.com/
        [Wed Jan 15 06:40:49.953449 2014] [cache_disk:debug] [pid 2380:tid 140215809054464] mod_cache_disk.c(1349): [client 118.67.252.150:31420] AH00737: commit_entity: Headers and body for URL http://tweetwood.mystorelive.com/store/info.js? cached., referer: http://tweetwood.mystorelive.com/


 <IfModule mod_cache.c>
      CacheIgnoreCacheControl On
      CacheIgnoreNoLastMod On
      CacheStoreNoStore On
       CacheDefaultExpire 600
      CacheMaxExpire 600
        CacheStorePrivate on
       CacheIgnoreHeaders Set-Cookie
        CacheIgnoreURLSessionIdentifiers jsessionid
        CacheQuickHandler Off
        CacheIgnoreQueryString On
         CacheDetailHeader on
        CacheHeader on
         KeepAlive off
         CacheKeyBaseURL http://tweetwood.mystorelive.com/
         <IfModule mod_cache_disk.c>
          CacheRoot /var/www/tweetwoodCache
          CacheEnable disk  /
          CacheDisable /admin
           CacheDirLevels 5
            CacheDirLength 3
          LogLevel debug
           CustomLog /var/log/apache2/uncached-requests.log common env=cache-miss
          </IfModule>
          # When acting as a proxy, don't cache the list of security updates
          CacheDisable http://security.update.server/update-list/
          #SetEnv proxy-nokeepalive 1
          </IfModule>
          ProxyRequests off
          <Proxy *>
           Order allow,deny
           Allow from all 
           <FilesMatch "\.(xml|txt|css|js|html)$">
             Header set Cache-Control "max-age=600, proxy-revalidate"
           </FilesMatch>
          </Proxy>
          ProxyPass / http://localhost:3000/
          ProxyPassReverse / http://localhost:3000/
      ProxyPreserveHost on 
[Wed Jan 15 06:40:49.366812 2014][cache:debug][pid 2381:tid 140215825839872]cache_storage.c(664):[client 107.20.138.104:45231]AH00698:cache:entity/store/info.js的键?(null)为http://tweetwood.mystorelive.com/store/info.js?
[Wed Jan 15 06:40:49.366898 2014][cache_disk:debug][pid 2381:tid 140215825839872]mod_cache_disk.c(572):[client 107.20.138.104:45231]AH00709:调用的缓存URL信息头http://tweetwood.mystorelive.com/store/info.js?
[Wed Jan 15 06:40:49.366921 2014][cache_disk:debug][pid 2381:tid 140215825839872]mod_cache_disk.c(884):[client 107.20.138.104:45231]AH00720:为URL调用的标头http://tweetwood.mystorelive.com/store/info.js?
[Wed Jan 15 06:40:49.366958 2014][cache:debug][pid 2381:tid 140215825839872]cache_storage.c(359):[client 107.20.138.104:45231]AH00695:/store/info.js的缓存响应不新鲜。添加条件请求头。
[Wed Jan 15 06:40:49.366971 2014][cache:debug][pid 2381:tid 140215825839872]mod_cache.c(486):[client 107.20.138.104:45231]AH00757:为/store/info.js添加缓存保存过滤器
[Wed Jan 15 06:40:49.366982 2014][cache:debug][pid 2381:tid 140215825839872]mod_cache.c(520):[client 107.20.138.104:45231]AH00759:为/store/info.js添加缓存\删除\ URL筛选器
[Wed Jan 15 06:40:49.366993 2014][proxy:debug][pid 2381:tid 140215825839872]mod_proxy.c(1100):[client 107.20.138.104:45231]AH01143:正在运行方案http处理程序(尝试0)
[Wed Jan 15 06:40:49.367007 2014][proxy:debug][pid 2381:tid 140215825839872]proxy_util.c(2020):AH00942:HTTP:已获得(本地主机)的连接
[Wed Jan 15 06:40:49.367017 2014][proxy:debug][pid 2381:tid 140215825839872]proxy_util.c(2072):[client 107.20.138.104:45231]AH00944:连接http://localhost:3000/store/info.js 至本地主机:3000
[Wed Jan 15 06:40:49.367027 2014][proxy:debug][pid 2381:tid 140215825839872]proxy_util.c(2194):[client 107.20.138.104:45231]AH00947:connected/store/info.js to localhost:3000
[Wed Jan 15 06:40:49.591935 2014][proxy:debug][pid 2381:tid 140215825839872]proxy_util.c(2035):AH00943:http:已释放(本地主机)的连接
[Wed Jan 15 06:40:49.592815 2014][deflate:debug][pid 2381:tid 140215825839872]mod_deflate.c(764):[client 107.20.138.104:45231]AH01384:Zlib:304058压缩到38873:URL/store/info.js
[Wed Jan 15 06:40:49.593047 2014][cache:debug][pid 2381:tid 140215825839872]mod_cache.c(1326):[client 107.20.138.104:45231]AH00769:cache:cache-url:/store/info.js
[Wed Jan 15 06:40:49.593067 2014][cache:debug][pid 2381:tid 140215825839872]mod_cache.c(1332):[client 107.20.138.104:45231]AH00770:缓存:删除缓存\删除URL筛选器。
[Wed Jan 15 06:40:49.593844 2014][cache_disk:debug][pid 2381:tid 140215825839872]mod_cache_disk.c(1349):[client 107.20.138.104:45231]AH00737:commit_实体:URL的头和正文http://tweetwood.mystorelive.com/store/info.js? 缓存。
[Wed Jan 15 06:40:49.951416 2014][proxy:debug][pid 2380:tid 140215809054464]proxy_util.c(2035):AH00943:http:已释放(本地主机)的连接
[Wed Jan 15 06:40:49.952371 2014][deflate:debug][pid 2380:tid 140215809054464]mod_deflate.c(764):[client 118.67.252.150:31420]AH01384:Zlib:340236压缩到40155:URL/store/info.js,参考:http://tweetwood.mystorelive.com/
[Wed Jan 15 06:40:49.952585 2014][cache:debug][pid 2380:tid 140215809054464]mod_cache.c(1326):[client 118.67.252.150:31420]AH00769:cache:Caching url:/store/info.js,参考:http://tweetwood.mystorelive.com/
[Wed Jan 15 06:40:49.952605 2014][cache:debug][pid 2380:tid 140215809054464]mod_cache.c(1332):[client 118.67.252.150:31420]AH00770:缓存:删除缓存\u删除URL筛选器,请参考:http://tweetwood.mystorelive.com/
[Wed Jan 15 06:40:49.953449 2014][cache_disk:debug][pid 2380:tid 140215809054464]mod_cache_disk.c(1349):[client 118.67.252.150:31420]AH00737:commit_实体:URL的标题和正文http://tweetwood.mystorelive.com/store/info.js? 请参阅:http://tweetwood.mystorelive.com/
CacheIgnoreCacheControl打开
CacheIgnoreNoLastMod打开
cachestorenostoreon
CacheDefaultExpire600
CacheMax600
CacheStorePrivate on
CacheIgnoreHeaders集Cookie
CacheIgnoreURLSessionIdentifiers JSSessionID
快速处理程序关闭
CacheIgnoreQueryString打开
上的CacheDetailHeader
上的CacheHeader
拒之门外
CacheKeyBaseURLhttp://tweetwood.mystorelive.com/
CacheRoot/var/www/tweetwoodCache
高速缓存启用磁盘/
缓存禁用/管理
缓存级别5
缓存长度3
日志级调试
CustomLog/var/log/apache2/uncached-requests.log common env=缓存未命中
#当充当代理时,不要缓存安全更新列表
缓存禁用http://security.update.server/update-list/
#SetEnv代理nokeepalive 1
代理请求关闭
命令允许,拒绝
通融
标题集缓存控制“最大年龄=600,代理重新验证”
ProxyPass/http://localhost:3000/
ProxyPassReverse/http://localhost:3000/
代理主机
请帮帮我,我做错了什么? 有人能告诉我上面的配置有什么问题吗? 谢谢
Vijay

我也有同样的问题,你让它工作了吗?没有,我没有得到任何解决方案,而是切换到对我有效的nginx。是的,这是我已经做过的Vijay。Nginx是个杀手。干杯