Welcome! Log In Create A New Profile

Advanced

Set Expires Header only if upstream has not already set an Expires

Thomas Glanzmann
November 22, 2017 04:44AM
Hello,
I would like to add an Expires Header only to upstream content that has
not already set an Expires header. Is there an easy way to do that with
nginx?

I thought about trying to add a header_filter_by_lua checking the
Expires header and set the necessary value if not already set. Is there
an easier way to do the same?

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

Set Expires Header only if upstream has not already set an Expires

Thomas Glanzmann November 22, 2017 04:44AM

Re: Set Expires Header only if upstream has not already set an Expires

Francis Daly November 22, 2017 06:28PM

Re: Set Expires Header only if upstream has not already set an Expires

Thomas Glanzmann November 30, 2017 01:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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