Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

Problem with ESI, gzip, Accept-Encoding-Normalisation and 404-Status

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


mib at electronic-minds

Apr 12, 2012, 10:46 AM

Post #1 of 3 (370 views)
Permalink
Problem with ESI, gzip, Accept-Encoding-Normalisation and 404-Status

Hello List,

I am facing this problem:

I have a page with a few esi:includes, which gets cached and served correctly.
My 404-Page has a similar structure. (not getting cached)
I am using the "Accept-Encoding"-Normalisation-snippet and remove the accept-encoding header for images et. al.
So far so good.

Now I am requesting a non-existent image (http://example.com/foo.jpg).
Varnish sees the .jpg and removes the accept-encoding header.
Since the resource is missing, my 404-page is served. (I do not rewrite the uri).
The 404-Page is served uncompressed (since we unset the accept-encoding) but contains gzipped esi:include blocks
(now showing binary characters/data in the browser)

What am I doing wrong?

Thanks

Michael


_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


sta at netimage

Apr 12, 2012, 11:21 PM

Post #2 of 3 (344 views)
Permalink
Re: Problem with ESI, gzip, Accept-Encoding-Normalisation and 404-Status [In reply to]

Hi Michael.
> The 404-Page is served uncompressed (since we unset the accept-encoding) but contains gzipped esi:include blocks
> (now showing binary characters/data in the browser)

I don't think you are doing anything wrong - except perhaps using
version 2.x?

I had the same issue - it was fixed in 3.0.1:
https://www.varnish-cache.org/trac/ticket/1029#comment:4

/Thing

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


mib at electronic-minds

Apr 13, 2012, 12:02 AM

Post #3 of 3 (354 views)
Permalink
AW: Problem with ESI, gzip, Accept-Encoding-Normalisation and 404-Status [In reply to]

Hello,

I am using varnish-3.0.2 revision cbf1284.

Thanks

Michael

-----Ursprüngliche Nachricht-----
Von: varnish-misc-bounces [at] varnish-cache [mailto:varnish-misc-bounces [at] varnish-cache] Im Auftrag von Sřren Thing Andersen
Gesendet: Freitag, 13. April 2012 08:21
An: varnish-misc [at] varnish-cache
Betreff: Re: Problem with ESI, gzip, Accept-Encoding-Normalisation and 404-Status

Hi Michael.
> The 404-Page is served uncompressed (since we unset the
> accept-encoding) but contains gzipped esi:include blocks (now showing
> binary characters/data in the browser)

I don't think you are doing anything wrong - except perhaps using version 2.x?

I had the same issue - it was fixed in 3.0.1:
https://www.varnish-cache.org/trac/ticket/1029#comment:4

/Thing

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.