#11813: Stale caches with trac and transparent proxies
----------------------------+-----------------------------------------------
   Reporter:  vbraun        |          Owner:  mvngu, schilly
       Type:  defect        |         Status:  new           
   Priority:  major         |      Milestone:  sage-4.7.2    
  Component:  website/wiki  |       Keywords:                
Work_issues:                |       Upstream:  N/A           
   Reviewer:                |         Author:                
     Merged:                |   Dependencies:                
----------------------------+-----------------------------------------------

Comment(by vbraun):

 I just looked at the trac server logs, and it never receives a second
 request for anything under `/sage_trac/raw-attachment` from our squid
 transparent proxy. So the culprit is definitely squid having a problem
 with ETag. Even though the docs say that it should work.

 The caching works correctly for other resources, for example if I request
 `http://trac.sagemath.org/sage_trac/chrome/common/download.png` from
 behind the transparent proxy it does send a request up to the trac server,
 is answered with a `HTTP 304`, and  serves the up-to-date cached version.
 The only difference I can see is that trac does not include an ETag header
 in that case, so it is a different code path in squid.
 {{{
 vbraun@boxen:~$ wget -O- -S
 trac.sagemath.org/sage_trac/chrome/common/download.png | md5sum
 --08:21:23--
 http://trac.sagemath.org/sage_trac/chrome/common/download.png
            => `-'
 Resolving trac.sagemath.org... 128.208.160.197
 Connecting to trac.sagemath.org|128.208.160.197|:80... connected.
 HTTP request sent, awaiting response...
   HTTP/1.1 200 Ok
   Date: Sun, 18 Sep 2011 15:21:23 GMT
   Server: Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.5.1 mod_python/3.3.1
 Python/2.5.2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_wsgi/2.0
   Content-Length: 164
   Last-Modified: Fri, 23 Oct 2009 03:56:53 GMT
   Keep-Alive: timeout=15, max=1000
   Connection: Keep-Alive
   Content-Type: image/png
 Length: 164 [image/png]

 
100%[=============================================================================>]
 164           --.--K/s

 08:21:24 (10.92 MB/s) - `-' saved [164/164]

 750ae6e7739e23934867fb5fe9ee0bee  -
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11813#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to