
daghf at varnish-software
Jul 2, 2013, 5:30 AM
Post #2 of 2
(79 views)
Permalink
|
|
Re: #1320 Varnish returns a 503 when being given a 302 by the webapp
[In reply to]
|
|
Hi Hans - I added a reference to this workaround in the bug report. Thanks On Tue, Jul 2, 2013 at 1:45 PM, Hans Schou <hans [at] moc> wrote: > Hi > > https://www.varnish-cache.org/trac/ticket/1320 > > The error occur when requesting a sub-page in Typo3 like > http://example.org/foo and it is being redirected to http://example.org/foo/ > by typo3 backend. Then Content-Encoding is set to "gzip" and > "Content-Length" is 0. > > I got this error with varnish 3.0.4 and solved it with this (if it could be > to any help). > > if (beresp.http.Content-Encoding ~ "gzip" ) { > if (beresp.http.Content-Length == "0") { > unset beresp.http.Content-Encoding; > } > } > > ...it might be possible to write it more "correct". > > -- > Venlig hilsen > Hans Schou > tel:46923438 > > > _______________________________________________ > varnish-misc mailing list > varnish-misc [at] varnish-cache > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc -- Dag Haavi Finstad Software Developer | Varnish Software AS Mobile: +47 476 64 134 | Office: +47 21 98 92 60 We Make Websites Fly! _______________________________________________ varnish-misc mailing list varnish-misc [at] varnish-cache https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
|