Hi,

1. Cache-Control and Pragma,
Polipo treat Pragma: no-cache and Cache-Control: no-cache the same. The
no-cache is stored in a flag and always send across polipo in Cache-Control
header.
This normally works fine for page that can be displayed by the IE itself,
such as html and jpg. But is problematic for plugins. Firefox do not has the
problem IE has. Here is what Microsoft says:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q297822

The IE ignores Pragma for server reply, so if the server put no-cache on
Pragma, it has no effect on IE. But IE do not like no-cache on Cache-Control
for content it need plugin to display. When no-cache is on Cache-Control, IE
won't store the download in a temp file for the plugin to work on. You will
get a blank window.

Suggest keep the Control-Control line in the headers lines the same as
Pragma, and remove the code that prints out Cache-Control from flags.

2. illegal Expire header.
Some time, buggy server give out malformed Expire date. I come across some
that looks like the actual script code to generate the date. Must be from a
buggie server side script. The polipo interpret such expire header as
Expire: 0. However, the client-server pair maybe some thing other than an
pair of apache-IE.  The client may just expect to see these odd Expire
header. A Expire: 0 is printed out by polipo as the date of beginning of
computer clock. This could throw the client off. I observe squid keeps
malformed header as is and pass them through. Maybe we should keep the
expire header in text as well.

This is just a heads up for discussion. I will clean up my code and give a
suggested patch.

Regards,
Regards,
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to