How to disable/not to send Last-Modified Header
Igor Sysoev
igor at sysoev.ru
Fri Mar 12 00:00:08 MSK 2010
On Thu, Mar 11, 2010 at 12:08:43PM -0500, tunggad wrote:
> We are using NGINX to front end Jetty Server, serving static content is done by NGINX and we want to disable/remove the Last-Modified Header.
>
> The Reason why we want to disable this header is to eliminate validation requests If-Modified-Since. The build process automatically changes the filename of the static artefacts every when we deploy new version, so these validation requests are not necessary.
Disabling If-Modified-Since validation:
if_modified_since off;
Removing Last-Modified header:
add_header Last-Modified "";
However, I do not see why If-Modified-Since may hinder if you generete
unique names.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list