Welcome! Log In Create A New Profile

Advanced

Re: Nginx unexpectedly returning 304 for content cached from proxy

January 22, 2010 12:37AM
the similar issue:
if use default setting,If-Modified-Since header is not fw to back end, when the cache file expired the cache server will get the file again from the backend server even if the file is not changed,it's not good for a high traffic load site.
is use proxy_set_header If-Modified-Since $http_if_modified_since,then will get unexpectedly returning 304 .
cache server cache 304 is not good i think....
Maybe the nginx should see wether the cache file exist first:
if exist then fw the if-Modified-Since header to backend,if the file has been changed, get file from the backend and overwrite the cache file,if not changes,return 304,then remain the cache file.
if no exist,then get rid of the If-Modified-Since header to get a new file from the backend
Subject Author Posted

Nginx unexpectedly returning 304 for content cached from proxy

antonio June 08, 2009 05:39AM

Re: Nginx unexpectedly returning 304 for content cached from proxy

merlin corey June 08, 2009 06:28AM

Re: Nginx unexpectedly returning 304 for content cached from proxy

Igor Sysoev June 08, 2009 06:26AM

Re: Nginx unexpectedly returning 304 for content cached from proxy

antonio June 08, 2009 07:58AM

Re: Nginx unexpectedly returning 304 for content cached from proxy

uqtdettr September 21, 2009 01:06AM

Re: Nginx unexpectedly returning 304 for content cached from proxy

uqtdettr October 26, 2009 09:49PM

Re: Nginx unexpectedly returning 304 for content cached from proxy

David Kostal December 17, 2009 03:54AM

Re: Nginx unexpectedly returning 304 for content cached from proxy

Ryan Malayter January 11, 2010 03:14PM

Re: Nginx unexpectedly returning 304 for content cached from proxy

arnoldguo January 21, 2010 04:38AM

Re: Nginx unexpectedly returning 304 for content cached from proxy

arnoldguo January 22, 2010 12:37AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready