Welcome! Log In Create A New Profile

Advanced

Re: Conditional based cache control

September 09, 2017 10:32AM
Hi!

I think you can consider the ngx_lua, you can achieve your purpose easily
by this. :)


On 9 September 2017 at 21:36:06, Ish Sookun (ish@lsl.digital) wrote:

Hello,

I need to write a config that will set the "Cache-Control" value of a
resource based on the age of the latter returned by the origin server.
E.g if a resource is older than X hours then the Cache-Control should
have a specific value.

Anybody ever done that?

I am hoping to be able to find something by starting with the
"Last-Modified" value that is returned by the origin server.

Regards,

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

Conditional based cache control

Ish Sookun September 09, 2017 09:38AM

Re: Conditional based cache control

tokers September 09, 2017 10:32AM

Re: Conditional based cache control

Ish Sookun September 09, 2017 02:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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