Conditional based cache control

Ish Sookun ish at lsl.digital
Sat Sep 9 18:38:19 UTC 2017


Hi Zhang,

Thank you for the suggestion. I will look into ngx_http_lua_module.

Regards,

Ish Sookun

On 09/09/2017 06:30 PM, Zhang Chao wrote:
> 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 at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
> 
> 
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
> 


More information about the nginx mailing list