March 11, 2010 04:04PM
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/

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

How to disable/not to send Last-Modified Header

tunggad March 11, 2010 12:08PM

Re: How to disable/not to send Last-Modified Header

Igor Sysoev March 11, 2010 04:04PM

Re: How to disable/not to send Last-Modified Header

tunggad March 13, 2010 04:41PM

Re: How to disable/not to send Last-Modified Header

bartzy January 12, 2011 04:12PM

Re: How to disable/not to send Last-Modified Header

Maxim Dounin January 13, 2011 08:28AM

Re: How to disable/not to send Last-Modified Header

bartzy January 14, 2011 07:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 266
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