#1320 Varnish returns a 503 when being given a 302 by the webapp

Dag Haavi Finstad daghf at varnish-software.com
Tue Jul 2 14:30:37 CEST 2013


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.net> 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.org
> 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!



More information about the varnish-misc mailing list