[Varnish] #282: varnish cashes a temporary redirect

Varnish varnish-bugs at projects.linpro.no
Thu Jul 24 20:54:38 CEST 2008


#282: varnish cashes a temporary redirect
----------------------+-----------------------------------------------------
 Reporter:  wichert   |       Owner:  phk                
     Type:  defect    |      Status:  new                
 Priority:  normal    |   Milestone:  Varnish 2.0 release
Component:  varnishd  |     Version:  trunk              
 Severity:  normal    |    Keywords:                     
----------------------+-----------------------------------------------------
 See on recent trunk:

 {{{
    18 SessionOpen  c 10.121.10.84 37279 0.0.0.0:80
    18 ReqStart     c 10.121.10.84 37279 437513765
    18 RxRequest    c GET
    18 RxURL        c /image-bank/TV.jpg/edit
    18 RxProtocol   c HTTP/1.1
    18 RxHeader     c User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X
 10_5_4; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2
 Safari/525.20.1
    18 RxHeader     c Accept:
 text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    18 RxHeader     c Accept-Language: en-us
    18 RxHeader     c Accept-Encoding: gzip, deflate
    18 RxHeader     c Cookie: __ac="xxxxxx";
 statusmessages="A+RXZWxjb21lISBZb3UgYXJlIG5vdyBsb2dnZWQgaW4uaW5mbw=="
    18 RxHeader     c Connection: keep-alive
    18 RxHeader     c Host: wrk-varn01.elkjop.int
    18 VCL_call     c recv
    18 VCL_return   c lookup
    18 VCL_call     c hash
    18 VCL_return   c hash
    18 Hit          c 437513731
    18 VCL_call     c hit
    18 VCL_return   c deliver
    18 Length       c 2522
    18 VCL_call     c deliver
    18 VCL_return   c deliver
    18 TxProtocol   c HTTP/1.1
    18 TxStatus     c 302
    18 TxResponse   c Moved Temporarily
    18 TxHeader     c Server: Zope/(Zope 2.10.6-final, python 2.4.3,
 linux2) ZServer/1.1 Plone/3.0.6
    18 TxHeader     c Bobo-Exception-Line: 195
    18 TxHeader     c Bobo-Exception-Value: See the server error log for
 details
    18 TxHeader     c Content-Language: en-us
    18 TxHeader     c Content-Encoding: gzip
    18 TxHeader     c Bobo-Exception-File: Traversable.py
    18 TxHeader     c Bobo-Exception-Type: Unauthorized
    18 TxHeader     c Expires: Sat, 1 Jan 2000 00:00:00 GMT
    18 TxHeader     c Vary: Accept-Encoding
    18 TxHeader     c X-Ksscommands: <?xml version="1.0"?> <root
 xmlns:kukit="http://www.kukit.org/commands/1.0"> <kukit:commands>
 <kukit:command name="error">            <kukit:param
 name="type">system</kukit:param>            <kukit:param
 name="message">Unauthorized: You are not allowed to a
    18 TxHeader     c Content-Type: text/html;charset=utf-8
    18 TxHeader     c Location: http://wrk-
 varn01.elkjop.int/acl_users/credentials_cookie_auth/require_login?came_from=http%3A
 //wrk-varn01.elkjop.int/image-bank/TV.jpg/atct_edit
    18 TxHeader     c Content-Length: 2522
    18 TxHeader     c Date: Thu, 24 Jul 2008 18:43:36 GMT
    18 TxHeader     c X-Varnish: 437513765 437513731
    18 TxHeader     c Age: 102
    18 TxHeader     c Via: 1.1 varnish
    18 TxHeader     c Connection: keep-alive
    18 ReqEnd       c 437513765 1216925016.633212090 1216925016.633437634
 0.008165836 0.000131130 0.000094414
     0 StatAddr     - 10.121.10.84 0 287288 5562 11937 0 0 1782 3339199
 30718664
    18 SessionClose c no request
 }}}

 Caching a response with a 302 response code sounds like a bad strategy.

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/282>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list