<div class="gmail_extra">Hi Maxim,<br><br>thanks for your response.<br><span id="result_box" class="" lang="en"><span class="hps">I was hoping it</span> <span class="hps">had</span> <span class="hps">a specific function</span> <span class="hps">in</span> <span class="hps">the</span> nginx <span class="hps">core</span> <span class="hps">for that. I looked the </span></span>ngx_http_set_expires function before ask to the list,<br>
but don't want to copy the code, if was possible to just call some function will be better.<br>If don't have any other way, I will implement based on that code.<br><br>Regards,<br>Wandenberg <br><br><div class="gmail_quote">
On Thu, Apr 26, 2012 at 11:33 AM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello!<br>
<div class="im"><br>
On Thu, Apr 26, 2012 at 10:04:29AM -0300, Wandenberg Peixoto wrote:<br>
<br>
> Hi Brian,<br>
><br>
> I need to this inside my module, it already exists.<br>
> Actually it responds to GET method and I need to add response to OPTIONS<br>
> methods to support cross domain access,<br>
> but want to send the response with cache headers, only for OPTIONS.<br>
> This is the reason I need to do that by code.<br>
<br>
</div>I really wonder why you ever asked, I'm pretty sure you'll be able<br>
to write correct code yourself. See ngx_http_set_expires() in<br>
ngx_http_headers_module.c for an example.<br>
<span class="HOEnZb"><font color="#888888"><br>
Maxim Dounin<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> Regards,<br>
> Wandenberg<br>
><br>
> On Thu, Apr 26, 2012 at 8:19 AM, Brian Akins <<a href="mailto:brian@akins.org">brian@akins.org</a>> wrote:<br>
><br>
> ><br>
> > On Apr 25, 2012, at 12:15 AM, Wandenberg Peixoto wrote:<br>
> > > I need to add response to OPTIONS method to a module to allow cross<br>
> > domain access,<br>
> > > but I want to set cache control and expires headers, only for this<br>
> > method, to browsers does not ask this method frequently.<br>
> ><br>
> > I did this in a simple Lua script. Could do the same with perl.<br>
> ><br>
> > _______________________________________________<br>
> > nginx-devel mailing list<br>
> > <a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
> > <a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
> ><br>
<br>
> _______________________________________________<br>
> nginx-devel mailing list<br>
> <a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
> <a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
<br>
_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
</div></div></blockquote></div><br></div>