> Hi Damon, > > I looked in details at the HTTP requests made by the > URLResourceManager, and found that a bug has been introduced in > version 2.0. The bug added a GET request after each HEAD. I can send > you a patch if needed.
That would be cool. ;-) > I couldn't reproduce the caching problem you are experiencing. Can you > send me the pipeline executed when this occurs? The extra GET may have misled me into thinking OXF had loaded the modified resource. I will check again with the patch. I notice that a HEAD request against my repository is NOT returning a last-modified header or any indication of expiry. What expiry will URLResourceManager default to in this case? I have posted to the SVN list to find out how to add last-modified headers. HTTP/1.1 200 OK Date: Wed, 06 Aug 2003 08:30:41 GMT Server: Apache/2.0.47 (Win32) DAV/2 SVN/0.26.0 ETag: "59//www/trunk/pipelines/homepage/format-homepage.xsl" Accept-Ranges: bytes Connection: close Content-Type: text/plain; charset=ISO-8859-1 Cheers, Damon. > Regards, > Julien > > Damon Rand wrote: > > > Hello guys, > > > > A few more observations/questions: > > > > 1. The URLResourceManager seems to be making too many requests.. When I > > start > > oxf and access a page (one request) the apache log shows.. > > > > 127.0.0.1 - - [02/Aug/2003:18:04:11 +0100] "HEAD > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 - > > 127.0.0.1 - - [02/Aug/2003:18:04:12 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:13 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:13 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:13 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:13 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:14 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:14 +0100] "HEAD > > /repos/www/trunk/config/log4j.xml HTTP/1.1" 200 - > > 127.0.0.1 - - [02/Aug/2003:18:04:14 +0100] "GET > > /repos/www/trunk/config/log4j.xml HTTP/1.1" 200 1351 > > 127.0.0.1 - - [02/Aug/2003:18:04:14 +0100] "GET > > /repos/www/trunk/config/log4j.xml HTTP/1.1" 200 1351 > > 127.0.0.1 - - [02/Aug/2003:18:04:14 +0100] "GET > > /repos/www/trunk/config/log4j.xml HTTP/1.1" 200 1351 > > 127.0.0.1 - - [02/Aug/2003:18:04:28 +0100] "HEAD > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 - > > 127.0.0.1 - - [02/Aug/2003:18:04:28 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:29 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:29 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:30 +0100] "HEAD > > /repos/www/trunk/config/init.xpl HTTP/1.1" 200 - > > 127.0.0.1 - - [02/Aug/2003:18:04:30 +0100] "GET > > /repos/www/trunk/config/init.xpl HTTP/1.1" 200 397 > > 127.0.0.1 - - [02/Aug/2003:18:04:30 +0100] "GET > > /repos/www/trunk/config/init.xpl HTTP/1.1" 200 397 > > 127.0.0.1 - - [02/Aug/2003:18:04:30 +0100] "GET > > /repos/www/trunk/config/init.xpl HTTP/1.1" 200 397 > > 127.0.0.1 - - [02/Aug/2003:18:04:30 +0100] "GET > > /repos/www/trunk/config/init.xpl HTTP/1.1" 200 397 > > 127.0.0.1 - - [02/Aug/2003:18:04:33 +0100] "HEAD > > /repos/www/trunk/config/controller.xml HTTP/1.1" 200 - > > 127.0.0.1 - - [02/Aug/2003:18:04:33 +0100] "GET > > /repos/www/trunk/config/controller.xml HTTP/1.1" 200 388 > > 127.0.0.1 - - [02/Aug/2003:18:04:33 +0100] "GET > > /repos/www/trunk/config/controller.xml HTTP/1.1" 200 388 > > 127.0.0.1 - - [02/Aug/2003:18:04:33 +0100] "GET > > /repos/www/trunk/config/controller.xml HTTP/1.1" 200 388 > > 127.0.0.1 - - [02/Aug/2003:18:04:34 +0100] "HEAD > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 - > > 127.0.0.1 - - [02/Aug/2003:18:04:34 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:34 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:34 +0100] "GET > > /repos/www/trunk/config/properties.xml HTTP/1.1" 200 1857 > > 127.0.0.1 - - [02/Aug/2003:18:04:34 +0100] "GET > > /repos/www/trunk/config/controller.xml HTTP/1.1" 200 388 > > 127.0.0.1 - - [02/Aug/2003:18:04:35 +0100] "HEAD > > /repos/www/trunk/format-homepage.xsl HTTP/1.1" 200 - > > 127.0.0.1 - - [02/Aug/2003:18:04:35 +0100] "GET > > /repos/www/trunk/format-homepage.xsl HTTP/1.1" 200 3188 > > 127.0.0.1 - - [02/Aug/2003:18:04:35 +0100] "GET > > /repos/www/trunk/format-homepage.xsl HTTP/1.1" 200 3188 > > 127.0.0.1 - - [02/Aug/2003:18:04:35 +0100] "HEAD > > /repos/www/trunk/default.xml HTTP/1.1" 200 - > > 127.0.0.1 - - [02/Aug/2003:18:04:35 +0100] "GET /repos/www/trunk/default.xml > > HTTP/1.1" 200 3759 > > 127.0.0.1 - - [02/Aug/2003:18:04:35 +0100] "GET /repos/www/trunk/default.xml > > HTTP/1.1" 200 3759 > > > > Why is it making multiple GET requests for the same pages? > > > > 2. Also the caching seems to be a bit strange.. If I modify a page in the > > repos and hit refresh I get.. > > > > 127.0.0.1 - - [02/Aug/2003:19:44:56 +0100] "HEAD > > /repos/a5gard.net/www/trunk/default.xml HTTP/1.1" 200 - > > 127.0.0.1 - - [02/Aug/2003:19:44:56 +0100] "GET > > /repos/a5gard.net/www/trunk/default.xml HTTP/1.1" 200 3602 > > > > So far so good, the modified page has a GET request issued against it. > > However the changes don't appear in the oxf output? I need to restart the > > servlet to see the changes. It almost like URLResourceManager is getting the > > data to update its cached copies but never actually updating the cache. > > > > 3. I know I asked this back on version 1.5 but maybe the situation has > > changed.. Is is going to be possible to have multiple servlet instances per > > web.xml? > > > > > > Damon. > > > > _______________________________________________ > > oxf-users mailing list > > [EMAIL PROTECTED] > > http://mail.orbeon.com/mailman/listinfo/oxf-users > > > _______________________________________________ > oxf-users mailing list > [EMAIL PROTECTED] > http://mail.orbeon.com/mailman/listinfo/oxf-users > _______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
