Setting cache control and expires inside a module

Wandenberg Peixoto wandenberg at gmail.com
Thu Apr 26 13:04:29 UTC 2012


Hi Brian,

I need to this inside my module, it already exists.
Actually it responds to GET method and I need to add response to OPTIONS
methods to support cross domain access,
but want to send the response with cache headers, only for OPTIONS.
This is the reason I need to do that by code.

Regards,
Wandenberg

On Thu, Apr 26, 2012 at 8:19 AM, Brian Akins <brian at akins.org> wrote:

>
> 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.
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20120426/7c82c67e/attachment.html>


More information about the nginx-devel mailing list