cached files with wrong size

Anatoli Marinov toli at webforge.bg
Fri Oct 19 08:10:20 UTC 2012


*Hello colleagues,
I have some troubles when caching (with proxy cache) some objects which 
don't
have content-length header. It happens with gzipped .js or .css files. 
Usually
these files don't have content-length because its size is not known when 
headers
are sent.

If the connection between proxy server and origin behind it disconnects 
during
file transfer the file will be checked if it has correct size only if
content-length exists. Otherwise the file will be cached normally even it
does not have correct size.

In this case corrupted file will be sent to the browser and probably it 
will break normal behaviour of a served website.
Do you know a solution for such kind of issues?*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20121019/4a85b003/attachment.html>


More information about the nginx-devel mailing list