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

--- Comment #2 from John <[email protected]> 2009-12-25 07:33:32 UTC ---
Hi Dan,

Thank you for your reply. Actually, these log entries describe the same
request. /energie/ is internally rewritten to index.php/energie/ (the /cache
fragment was a test) using the following .htaccess file:

<BEGIN .HTACCESS>

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_URI} [A-Z]
    RewriteRule ^(.*)$ lcaseurl\.php [L,NC]

    RewriteCond %{HTTP_HOST} ^ikleefgroen.nl
    RewriteRule (.*) http://www.ikleefgroen.nl/$1 [R=301,L]

    RewriteCond %{REQUEST_URI} !(/$|\.) 
    RewriteRule (.+) http://www.ikleefgroen.nl/$1/ [R=301,L] 

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
    RewriteRule ^index\.php$ http://www.ikleefgroen.nl/ [R=301,L]

    RewriteCond %{QUERY_STRING} ^s=(.*) 
    RewriteRule ^(.*)$ http://www.ikleefgroen.nl/%1/? [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]

    RewriteRule ^(.*) index.php/$1

    RewriteCond %{HTTP:Authorization} !^$
    RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]

</IfModule>

FileETag none

<END .HTACCESS>

Here are the logs entries you requested after requesting the page /isolatie/
twice using two different user agents. Once using firefox, once using wget:

<BEGIN ACCESS LOG>
213.93.114.240 - - [25/Dec/2009:16:30:33 +0100] "GET /isolatie/ HTTP/1.1" 200
1253 "http://www.ikleefgroen.nl/windenergie/windturbine/"; "Mozilla/5.0
(Windows; U; Windows NT 6.1; nl; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5"
94.75.206.140 - - [25/Dec/2009:16:30:47 +0100] "GET /isolatie/ HTTP/1.0" 200
2712 "-" "Wget/1.11.4 Red Hat modified"
<END ACCESS LOG>

<BEGIN ERROR LOG>
[Fri Dec 25 16:30:33 2009] [debug] mod_cache.c(131): Adding CACHE_SAVE filter
for /isolatie/
[Fri Dec 25 16:30:33 2009] [debug] mod_cache.c(138): Adding CACHE_REMOVE_URL
filter for /isolatie/
[Fri Dec 25 16:30:33 2009] [debug] mod_cache.c(131): Adding CACHE_SAVE filter
for /index.php/isolatie/
[Fri Dec 25 16:30:33 2009] [debug] mod_cache.c(138): Adding CACHE_REMOVE_URL
filter for /index.php/isolatie/
[Fri Dec 25 16:30:33 2009] [debug] mod_deflate.c(602): [client 213.93.114.240]
Zlib: Compressed 2712 to 1235 : URL /index.php/isolatie/, referer:
http://www.ikleefgroen.nl/windenergie/windturbine/
[Fri Dec 25 16:30:33 2009] [debug] mod_cache.c(663): cache: Caching url:
/index.php/isolatie/
[Fri Dec 25 16:30:33 2009] [debug] mod_cache.c(669): cache: Removing
CACHE_REMOVE_URL filter.
[Fri Dec 25 16:30:33 2009] [debug] mod_disk_cache.c(977): disk_cache: Stored
headers for URL http://www.ikleefgroen.nl:80/index.php/isolatie/?
[Fri Dec 25 16:30:33 2009] [debug] mod_disk_cache.c(1066): disk_cache: Body for
URL http://www.ikleefgroen.nl:80/index.php/isolatie/? cached.
[Fri Dec 25 16:30:47 2009] [debug] mod_cache.c(131): Adding CACHE_SAVE filter
for /isolatie/
[Fri Dec 25 16:30:47 2009] [debug] mod_cache.c(138): Adding CACHE_REMOVE_URL
filter for /isolatie/
[Fri Dec 25 16:30:47 2009] [debug] mod_cache.c(131): Adding CACHE_SAVE filter
for /index.php/isolatie/
[Fri Dec 25 16:30:47 2009] [debug] mod_cache.c(138): Adding CACHE_REMOVE_URL
filter for /index.php/isolatie/
[Fri Dec 25 16:30:47 2009] [debug] mod_cache.c(663): cache: Caching url:
/index.php/isolatie/
[Fri Dec 25 16:30:47 2009] [debug] mod_cache.c(669): cache: Removing
CACHE_REMOVE_URL filter.
[Fri Dec 25 16:30:47 2009] [debug] mod_disk_cache.c(977): disk_cache: Stored
headers for URL http://www.ikleefgroen.nl:80/index.php/isolatie/?
[Fri Dec 25 16:30:47 2009] [debug] mod_disk_cache.c(1066): disk_cache: Body for
URL http://www.ikleefgroen.nl:80/index.php/isolatie/? cached.
<END ERROR LOG>

As you can see, no cache! I have explicitly made sure no vary: header is sent.

(In reply to comment #1)
> mod_cache always checks the cache before adding the filters, so this log
> indicates it's not finding that request saved in the cache, not that it's not
> looking for it.
> 
> There are two different requests in the log fragment that was included:
> /energie/
> /index.php/energie/cache
> 
> which one are you concerned about?
> 
> Please attach your configuration file(s), including any .htaccess files
> involved.  State the complete URL that is being requested.  How is it 
> requested
> (browser? which one?  is caching enabled in the browser?).  
> 
> Then clear your logs, set LogLevel to debug (I think it already is, from the
> log posted), restart the server, request the URL exactly twice, stop the 
> server
> and include both the error and access logs.  
> 
> If requesting the URL from a browser, use shift-Reload or whatever it takes to
> tell that browser not to use anything it has cached itself.  It would be 
> better
> for debugging this, though, to request the URL using a tool like wget or curl,
> to avoid any risk of browser caching confusing matters.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to