我试图让mod disk_cache使用ProxyPass永久性地caching从Web服务器上的映像服务器检索到的映像。
当图像正在从服务器正确检索,并从caching服务进一步请求,然后我仍然有Web服务器调用图像服务器,并导致caching头更新。 由于负载的担忧,那么我需要在caching一次之后再次调用图像服务器,或者尽可能延长刷新时间。
networking服务器是IHS 7.0 mod是mod_disk_cache.so,mod_cache.so,mod_proxy.so版本2.2.8.0
以下是从我的httpd.conf:
ProxyPass /webserver/media/images/ http://imageserver.com/ws/media/images/ # Caching pictures <IfModule mod_cache.c> <IfModule mod_disk_cache.c> CacheDefaultExpire 2628000 #CacheDisable CacheEnable disk /webserver/media/images/ CacheIgnoreCacheControl On CacheIgnoreHeaders Cookie Referer User-Agent X-Forwarded-For X-Forwarded-Host X-Forwarded-Server Accept-Language Accept Host CacheIgnoreNoLastMod On CacheIgnoreQueryString Off #CacheIgnoreURLSessionIdentifiers CacheLastModifiedFactor 10000000.1 #CacheLock on #CacheLockMaxAge 5 #CacheLockPath CacheMaxExpire 1576800 CacheStoreNoStore On CacheStorePrivate On CacheDirLength 2 CacheDirLevels 3 CacheMaxFileSize 1000000 CacheMinFileSize 1 CacheRoot c:/cacheroot2 </IfModule> </IfModule>