[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to make mod_svn_dav return a last-modified header?

From: <kfogel_at_collab.net>
Date: 2003-08-07 21:20:55 CEST

> OK, done:
>
> [root@atomism i386]# rpm -qa subversion
> subversion-0.26.0-6662

I'm confused about this rpm's name, by the way. The caching headers
were in revision 6636. Subversion 0.26 was based on revision 6550 or
so. What does the "-6662" mean -- where did the rpm come from?

I tried to detect the caching headers with ethereal, in a lynx dump
and then in a checkout, no luck. So something is wrong here. Dang
it, I *know* Ben and did an ethereal dump after we made the change,
and we saw the expected headers in there, so what happened? :-) I
don't know yet...

   $ lynx -head -dump http://localhost/repositories/basic_tests-1/iota
   HTTP/1.1 200 OK
   Date: Thu, 07 Aug 2003 22:01:50 GMT
   Server: Apache/2.0.47 (Unix) DAV/2 SVN/0.26.0+
   ETag: "1//iota"
   Accept-Ranges: bytes
   Connection: close
   Content-Type: text/plain; charset=ISO-8859-1

During which ethereal said:

   HEAD /repositories/basic_tests-1/iota HTTP/1.0
   Host: localhost
   Accept: text/html, text/plain, audio/mod, image/*, video/mpeg, video/*, application/pgp, application/pdf, application/postscript, message/partial, message/external-body, x-be2, application/andrew-inset, text/richtext, text/enriched, x-sun-attachment
   Accept: audio-file, postscript-file, default, mail-file, sun-deskset-message, application/x-metamail-patch, application/msword, text/sgml, */*;q=0.01
   Accept-Language: en
   User-Agent: Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6b
   
   HTTP/1.1 200 OK
   Date: Thu, 07 Aug 2003 22:01:50 GMT
   Server: Apache/2.0.47 (Unix) DAV/2 SVN/0.26.0+
   ETag: "1//iota"
   Accept-Ranges: bytes
   Connection: close
   Content-Type: text/plain; charset=ISO-8859-1

Hmmm, no caching headers. Then I tried a checkout:

   $ svn co http://localhost/repositories/basic_tests-1
   A basic_tests-1/A
   A basic_tests-1/A/mu
   A basic_tests-1/A/B
   A basic_tests-1/A/B/lambda
   A basic_tests-1/A/B/E
   A basic_tests-1/A/B/E/alpha
   A basic_tests-1/A/B/E/beta
   A basic_tests-1/A/B/F
   A basic_tests-1/A/C
   A basic_tests-1/A/D
   A basic_tests-1/A/D/gamma
   A basic_tests-1/A/D/G
   A basic_tests-1/A/D/G/pi
   A basic_tests-1/A/D/G/rho
   A basic_tests-1/A/D/G/tau
   A basic_tests-1/A/D/H
   A basic_tests-1/A/D/H/chi
   A basic_tests-1/A/D/H/omega
   A basic_tests-1/A/D/H/psi
   A basic_tests-1/iota
   Checked out revision 1.
   $

And ethereal saw nothing about caching or Last-Modified during the
checkout:

   PROPFIND /repositories/basic_tests-1 HTTP/1.1
   Host: localhost
   User-Agent: neon/0.23.5 SVN/0.26.0 (dev build)
   Keep-Alive:
   Connection: TE, Keep-Alive
   TE: trailers
   Content-Length: 308
   Content-Type: text/xml
   Depth: 0
   
   <?xml version="1.0" encoding="utf-8"?>
   <propfind xmlns="DAV:">
   <prop>
   <version-controlled-configuration xmlns="DAV:"/>
   <resourcetype xmlns="DAV:"/>
   <baseline-relative-path xmlns="http://subversion.tigris.org/xmlns/dav/"/>
   <repository-uuid xmlns="http://subversion.tigris.org/xmlns/dav/"/>
   </prop></propfind>
   HTTP/1.1 207 Multi-Status
   Date: Thu, 07 Aug 2003 22:04:06 GMT
   Server: Apache/2.0.47 (Unix) DAV/2 SVN/0.26.0+
   Keep-Alive: timeout=15, max=100
   Connection: Keep-Alive
   Transfer-Encoding: chunked
   Content-Type: text/xml; charset="utf-8"
   
   2ab
   <?xml version="1.0" encoding="utf-8"?>
   <D:multistatus xmlns:D="DAV:" xmlns:ns1="http://subversion.tigris.org/xmlns/dav/" xmlns:ns0="DAV:">
   <D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
   <D:href>/repositories/basic_tests-1/</D:href>
   <D:propstat>
   <D:prop>
   <lp1:version-controlled-configuration><D:href>/repositories/basic_tests-1/!svn/vcc/default</D:href></lp1:version-controlled-configuration>
   <lp1:resourcetype><D:collection/></lp1:resourcetype>
   <lp3:baseline-relative-path/>
   <lp3:repository-uuid>42d2e9d8-54c4-0310-af10-f660da32b4ac</lp3:repository-uuid>
   </D:prop>
   <D:status>HTTP/1.1 200 OK</D:status>
   </D:propstat>
   </D:response>
   </D:multistatus>
   
   0
   
   PROPFIND /repositories/basic_tests-1/!svn/vcc/default HTTP/1.1
   Host: localhost
   User-Agent: neon/0.23.5 SVN/0.26.0 (dev build)
   Connection: TE
   TE: trailers
   Content-Length: 116
   Content-Type: text/xml
   Depth: 0
   
   <?xml version="1.0" encoding="utf-8"?>
   <propfind xmlns="DAV:">
   <prop>
   <checked-in xmlns="DAV:"/>
   </prop></propfind>
   HTTP/1.1 207 Multi-Status
   Date: Thu, 07 Aug 2003 22:04:06 GMT
   Server: Apache/2.0.47 (Unix) DAV/2 SVN/0.26.0+
   Transfer-Encoding: chunked
   Content-Type: text/xml; charset="utf-8"
   
   1b2
   <?xml version="1.0" encoding="utf-8"?>
   <D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">
   <D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
   <D:href>/repositories/basic_tests-1/!svn/vcc/default</D:href>
   <D:propstat>
   <D:prop>
   <lp1:checked-in><D:href>/repositories/basic_tests-1/!svn/bln/1</D:href></lp1:checked-in>
   </D:prop>
   <D:status>HTTP/1.1 200 OK</D:status>
   </D:propstat>
   </D:response>
   </D:multistatus>
   
   0
   
   PROPFIND /repositories/basic_tests-1/!svn/bln/1 HTTP/1.1
   Host: localhost
   User-Agent: neon/0.23.5 SVN/0.26.0 (dev build)
   Connection: TE
   TE: trailers
   Content-Length: 154
   Content-Type: text/xml
   Depth: 0
   
   <?xml version="1.0" encoding="utf-8"?>
   <propfind xmlns="DAV:">
   <prop>
   <baseline-collection xmlns="DAV:"/>
   <version-name xmlns="DAV:"/>
   </prop></propfind>
   HTTP/1.1 207 Multi-Status
   Date: Thu, 07 Aug 2003 22:04:06 GMT
   Server: Apache/2.0.47 (Unix) DAV/2 SVN/0.26.0+
   Transfer-Encoding: chunked
   Content-Type: text/xml; charset="utf-8"
   
   1e5
   <?xml version="1.0" encoding="utf-8"?>
   <D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">
   <D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
   <D:href>/repositories/basic_tests-1/!svn/bln/1</D:href>
   <D:propstat>
   <D:prop>
   <lp1:baseline-collection><D:href>/repositories/basic_tests-1/!svn/bc/1/</D:href></lp1:baseline-collection>
   <lp1:version-name>1</lp1:version-name>
   </D:prop>
   <D:status>HTTP/1.1 200 OK</D:status>
   </D:propstat>
   </D:response>
   </D:multistatus>
   
   0
   
   PROPFIND /repositories/basic_tests-1 HTTP/1.1
   Host: localhost
   User-Agent: neon/0.23.5 SVN/0.26.0 (dev build)
   Connection: TE
   TE: trailers
   Content-Length: 308
   Content-Type: text/xml
   Depth: 0
   
   <?xml version="1.0" encoding="utf-8"?>
   <propfind xmlns="DAV:">
   <prop>
   <version-controlled-configuration xmlns="DAV:"/>
   <resourcetype xmlns="DAV:"/>
   <baseline-relative-path xmlns="http://subversion.tigris.org/xmlns/dav/"/>
   <repository-uuid xmlns="http://subversion.tigris.org/xmlns/dav/"/>
   </prop></propfind>
   HTTP/1.1 207 Multi-Status
   Date: Thu, 07 Aug 2003 22:04:06 GMT
   Server: Apache/2.0.47 (Unix) DAV/2 SVN/0.26.0+
   Transfer-Encoding: chunked
   Content-Type: text/xml; charset="utf-8"
   
   2ab
   <?xml version="1.0" encoding="utf-8"?>
   <D:multistatus xmlns:D="DAV:" xmlns:ns1="http://subversion.tigris.org/xmlns/dav/" xmlns:ns0="DAV:">
   <D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
   <D:href>/repositories/basic_tests-1/</D:href>
   <D:propstat>
   <D:prop>
   <lp1:version-controlled-configuration><D:href>/repositories/basic_tests-1/!svn/vcc/default</D:href></lp1:version-controlled-configuration>
   <lp1:resourcetype><D:collection/></lp1:resourcetype>
   <lp3:baseline-relative-path/>
   <lp3:repository-uuid>42d2e9d8-54c4-0310-af10-f660da32b4ac</lp3:repository-uuid>
   </D:prop>
   <D:status>HTTP/1.1 200 OK</D:status>
   </D:propstat>
   </D:response>
   </D:multistatus>
   
   0
   
   PROPFIND /repositories/basic_tests-1/!svn/vcc/default HTTP/1.1
   Host: localhost
   User-Agent: neon/0.23.5 SVN/0.26.0 (dev build)
   Connection: TE
   TE: trailers
   Content-Length: 154
   Content-Type: text/xml
   Label: 1
   Depth: 0
   
   <?xml version="1.0" encoding="utf-8"?>
   <propfind xmlns="DAV:">
   <prop>
   <baseline-collection xmlns="DAV:"/>
   <version-name xmlns="DAV:"/>
   </prop></propfind>
   HTTP/1.1 207 Multi-Status
   Date: Thu, 07 Aug 2003 22:04:06 GMT
   Server: Apache/2.0.47 (Unix) DAV/2 SVN/0.26.0+
   Vary: Label
   Transfer-Encoding: chunked
   Content-Type: text/xml; charset="utf-8"
   
   1e5
   <?xml version="1.0" encoding="utf-8"?>
   <D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">
   <D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
   <D:href>/repositories/basic_tests-1/!svn/bln/1</D:href>
   <D:propstat>
   <D:prop>
   <lp1:baseline-collection><D:href>/repositories/basic_tests-1/!svn/bc/1/</D:href></lp1:baseline-collection>
   <lp1:version-name>1</lp1:version-name>
   </D:prop>
   <D:status>HTTP/1.1 200 OK</D:status>
   </D:propstat>
   </D:response>
   </D:multistatus>
   
   0
   
   PROPFIND /repositories/basic_tests-1/!svn/bc/1 HTTP/1.1
   Host: localhost
   User-Agent: neon/0.23.5 SVN/0.26.0 (dev build)
   Connection: TE
   TE: trailers
   Content-Length: 308
   Content-Type: text/xml
   Depth: 0
   
   <?xml version="1.0" encoding="utf-8"?>
   <propfind xmlns="DAV:">
   <prop>
   <version-controlled-configuration xmlns="DAV:"/>
   <resourcetype xmlns="DAV:"/>
   <baseline-relative-path xmlns="http://subversion.tigris.org/xmlns/dav/"/>
   <repository-uuid xmlns="http://subversion.tigris.org/xmlns/dav/"/>
   </prop></propfind>
   HTTP/1.1 207 Multi-Status
   Date: Thu, 07 Aug 2003 22:04:06 GMT
   Server: Apache/2.0.47 (Unix) DAV/2 SVN/0.26.0+
   Transfer-Encoding: chunked
   Content-Type: text/xml; charset="utf-8"
   
   2b5
   <?xml version="1.0" encoding="utf-8"?>
   <D:multistatus xmlns:D="DAV:" xmlns:ns1="http://subversion.tigris.org/xmlns/dav/" xmlns:ns0="DAV:">
   <D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
   <D:href>/repositories/basic_tests-1/!svn/bc/1/</D:href>
   <D:propstat>
   <D:prop>
   <lp1:version-controlled-configuration><D:href>/repositories/basic_tests-1/!svn/vcc/default</D:href></lp1:version-controlled-configuration>
   <lp1:resourcetype><D:collection/></lp1:resourcetype>
   <lp3:baseline-relative-path/>
   <lp3:repository-uuid>42d2e9d8-54c4-0310-af10-f660da32b4ac</lp3:repository-uuid>
   </D:prop>
   <D:status>HTTP/1.1 200 OK</D:status>
   </D:propstat>
   </D:response>
   </D:multistatus>
   
   0
   

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 7 22:01:28 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.