My cache isn't working

Discussion in 'Apache' started by dbrandt, Dec 6, 2007.

  1. #1
    I'm trying to set up a proxy with a cache, and it's not going so well. Here are some snippets of the httpd file:

    
    LoadModule cache_module modules/mod_cache.so
    LoadModule disk_cache_module modules/mod_disk_cache.so
    LoadModule file_cache_module modules/mod_file_cache.so
    
    <IfModule mod_proxy.c>
    ProxyRequests On
    
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    
    #
    # Enable/disable the handling of HTTP/1.1 "Via:" headers.
    # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
    # Set to one of: Off | On | Full | Block
    #
    ProxyVia On
    
    #
    # To enable the cache as well, edit and uncomment the following lines:
    # (no cacheing without CacheRoot)
    #
    CacheRoot "C:/OpenSA/Apache2/proxy"
    CacheSize 200
    CacheGcInterval 4
    CacheMaxExpire 24
    CacheLastModifiedFactor 0.1
    CacheDefaultExpire 1
    </IfModule>
    
    Code (markup):
    I configure IE to use my proxy and I start browsing, and nothing ever appears in the cache folder. I've debugged the code with "Apache -t" and everything comes out clear. So what's the problem?
    P.S. Yes the proxy itself works, I've tested that already :D
     
    dbrandt, Dec 6, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If your using to proxy your web connection, maybe you should try squid proxy, that works extremely well, otherwise, if you are trying to proxy your own website, i would suggest you check the headers sent out, if it's always sending out no-cache headers or something similar, it would explain it.
     
    powerspike, Dec 6, 2007 IP