memc_flags_to_last_modified and srcache , no 304 possible ?

agentzh agentzh at gmail.com
Fri May 11 06:49:41 UTC 2012


On Wed, Apr 4, 2012 at 11:23 AM, agentzh <agentzh at gmail.com> wrote:
> On Tue, Apr 3, 2012 at 5:21 AM, Nginx_User777 <nginx-forum at 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



More information about the nginx mailing list