Setting cache control and expires inside a module

Brian Akins brian at akins.org
Thu Apr 26 11:19:28 UTC 2012


On Apr 25, 2012, at 12:15 AM, Wandenberg Peixoto wrote:
> I need to add response to OPTIONS method to a module to allow cross domain access,
> but I want to set cache control and expires headers, only for this method, to browsers does not ask this method frequently.

I did this in a simple Lua script. Could do the same with perl.



More information about the nginx-devel mailing list