> a forum website has distorted style sheet if loading via polipo.

Their forum software is buggy (which is not surprising, it's written in
PHP), but Polipo should be able to deal with that.  So it looks like a bug
in Polipo triggered by their bug.

You can probably work around the issue by setting 'dontCacheCookies' or
'dontTrustVaryETag' to true; please let us know.

  $ curl -I 
'http://www.elektrikforen.de/allgemeines/17607-techn-probleme-im-forum-7.html' 
| grep -i '^Vary\|^Cache-Control\|^Expires\|^ETag'
  Expires: Thu, 19 Nov 1981 08:52:00 GMT
  Cache-Control: private
  Vary: Accept-Encoding

Eek... this page claims that it only depends on the Accept-Encoding header
(Vary), that it must be revalidated (Expires set in the past) and, just to
be sure, that it must be revalidated by shared proxies (Cache-Control).
However, there's no strong validator (ETag or Last-Modified), so
revalidation is impossible -- the page is effectively not cachable.

Ok, let's see if they lied.

  $ curl 
'http://www.elektrikforen.de/allgemeines/17607-techn-probleme-im-forum-7.html' 
> /tmp/a
  $ curl -A 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/35.0.1916.114 Safari/537.36' 
'http://www.elektrikforen.de/allgemeines/17607-techn-probleme-im-forum-7.html' 
> /tmp/b
  $ diff -q /tmp/a /tmp/b
  Files /tmp/a and /tmp/b differ

So they lied -- they are in fact performing user-agent sniffing, and not
declaring it in their Vary header.  Now this shouldn't matter, since the
page is uncachable and has no strong validator, but it looks like Polipo
doesn't deal correctly with this particular case.  I'll have a look.

-- Juliusz

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Polipo-users mailing list
Polipo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to