Welcome! Log In Create A New Profile

Advanced

Re: Very strange behaviour - advice needed

Reinis Rozitis
March 28, 2011 11:32AM
> All input gratefully received.

What browsers did you use for testing?

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.




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.


rr


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Very strange behaviour - advice needed

hobson42 March 28, 2011 10:58AM

Re: Very strange behaviour - advice needed

Reinis Rozitis March 28, 2011 11:32AM

Re: Very strange behaviour - advice needed

hobson42 March 28, 2011 02:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 134
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready