Very strange behaviour - advice needed

Ian Hobson ian at ianhobson.co.uk
Mon Mar 28 22:10:39 MSD 2011


Hi Reinis,

On 28/03/2011 16:30, Reinis Rozitis wrote:
>> All input gratefully received.
>
> What browsers did you use for testing?
>
I use Firefox, but my users mostly use IE.

> There is kinda a known bug/problem ( 
> http://support.microsoft.com/kb/812935 ) with IE (older versions at 
> least) that the browser doesnt like Cache-Control: No Store / No Cache 
> headers (for certain types of documents ) which obviously are sent by 
> default if you are using php sessions.
>
> One of the suggested fixes is to add following header lines to the 
> code before sending the file:
>
> <?
> // fix for IE catching or PHP bug issue
> header("Pragma: public");
> header("Expires: 0");
> header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
> ?>
>
> Similar case/sample ( 
> http://blog.globalfolders.com/2010/10/pdf-downloads-in-ie-over-ssl-using-nginx/ 
> ) just using the nginx X-Accel-Redirect.
>
> See if that helps.
Thanks for the heads-up!
>
>
>
>
> If not you probably need to enable some kind of php errorloging 
> (logging to file) to catch the problem - it might aswell be just the 
> php script exausting 'memory_limit' which in some L(W)AMP 
> installations is pretty low.
>
I've raised it from 128MB to 256MB, but it appeared to make no difference.

I'll try raising the error logging, and sending it to a file.

Thanks again.

Ian




More information about the nginx mailing list