Welcome! Log In Create A New Profile

Advanced

Re: memc_flags_to_last_modified and srcache , no 304 possible ?

agentzh
May 11, 2012 02:50AM
On Wed, Apr 4, 2012 at 11:23 AM, agentzh <agentzh@gmail.com> wrote:
> On Tue, Apr 3, 2012 at 5:21 AM, Nginx_User777 <nginx-forum@nginx.us> wrote:
>> Is it possible to use the memc_flags_to_last_modified directive with
>> srcache ?
>> It doesn't work for me.
>>
>> When a browser request nginx with a "If-Modified-Since" header, I would
>> like that nginx lookup in memcached to verify if the "Last Modified" is
>> the same and honor the 304 request without hit the proxied server (in
>> another country).
>>
>> Impossible to get a 304, so no bandwith saved ... But my provider is
>> happy :)
>>
>> Thanks for your help !
>> I working on for several days, i'll really go mad :)
>>
>
> This is a TODO item for ngx_srcache. I'll look into this in the near
> future. Thanks for reminding me of this :)
>

I've just committed a patch to ngx_srcache's git master to add support
for conditional GET requests (for both If-Modified-Since and
If-Unmodified-Since):

https://github.com/agentzh/srcache-nginx-module/commit/1df1c56

I've also included some tests for this feature :)

Enjoy!
-agentzh

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

memc_flags_to_last_modified and srcache , no 304 possible ?

Nginx_User777 April 02, 2012 05:21PM

Re: memc_flags_to_last_modified and srcache , no 304 possible ?

agentzh April 03, 2012 11:24PM

Re: memc_flags_to_last_modified and srcache , no 304 possible ?

Nginx_User777 April 04, 2012 05:33AM

Re: memc_flags_to_last_modified and srcache , no 304 possible ?

agentzh May 11, 2012 02:50AM

Re: memc_flags_to_last_modified and srcache , no 304 possible ?

Nginx_User777 May 14, 2012 08:07AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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