You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/08/28 12:05:05 UTC

[Bug 53787] New: In forward proxy, doesn't cache disk anymore

https://issues.apache.org/bugzilla/show_bug.cgi?id=53787

          Priority: P2
            Bug ID: 53787
          Assignee: bugs@httpd.apache.org
           Summary: In forward proxy, doesn't cache disk anymore
          Severity: regression
    Classification: Unclassified
                OS: Linux
          Reporter: johnny.barray@maif.fr
          Hardware: PC
            Status: NEW
           Version: 2.4.3
         Component: mod_cache_disk / mod_disk_cache
           Product: Apache httpd-2

Created attachment 29290
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29290&action=edit
You can see there the access I did and the listing of the cacheRoot.

Hi,

I build a sample forward-proxy with disk cache enable. In 2.2.22, everything is
OK but in 2.4.2 and 2.4.3, the cache doesn't work any more.

The configuration is quiet simple (as in the documentation, I do a simple POC
for the 2 versions) :

ProxyRequests On
ProxyVia On
ProxyRemote * http://<hostname of my internet proxy>:8080

<Proxy *>
  Order Deny,Allow
  Deny from all
  Allow from 172.20.192
</Proxy>

CacheEnable disk /
CacheRoot "/tmp/apache243cache"

I can see the access, http access are OK from my brower using this proxy but
only the htdocs/index.html is cached on the disk while in 2.2, all the gif and
html files are written in the cache.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53787] In forward proxy, doesn't cache disk anymore

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53787

--- Comment #1 from johnny.barray@maif.fr ---
Created attachment 29291
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29291&action=edit
The complete configuration file used

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53787] In forward proxy, doesn't cache disk anymore

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53787

johnny.barray@maif.fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johnny.barray@maif.fr

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53787] In forward proxy, doesn't cache disk anymore

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53787

--- Comment #3 from Vincent Caron <vc...@bearstech.com> ---
Same issue while Apache 2.2.22 from Debian 7.0.

'CacheEnable /' is not caching forward-proxied any more, but it can be done
with 'CacheEnable http://'. Which is actually much better since we can
separately control if we cache local and/pr proxied content.

But the behaviour change is not documented in
http://httpd.apache.org/docs/2.2/mod/mod_cache.html#cacheenable - I only found
out while seeing the 'CacheEnable ftp://' example.

My old Apache 2.2.9 was caching forward-proxied requests with 'CacheEnable /'.
Thus the change occured in the 2.2.9 (r666274) - 2.2.22 (r1235965) interval.
That's a looots of commits :
http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache.c?view=log

I suggest to change the doc :
* change the 'CacheEnable /' as 'CacheEnable http://' after the '# Cache
proxied url's' line (this is obivously a typo)
* specify at which Apache version this behaviour changed (sorry, dunno which)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53787] In forward proxy, doesn't cache disk anymore

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53787

--- Comment #2 from Jarrod Petz <jl...@gmail.com> ---
I have this same issue.

The disk cache will work for local content.

But proxied requests are not getting cached.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org