Welcome! Log In Create A New Profile

Advanced

Old thread: Cache for non-cookie users and fresh for cookie users

Quintin Par
February 09, 2012 02:06AM
Picking up an old thread for caching

http://nginx.2469901.n2.nabble.com/Help-cache-or-not-by-cookie-td3124462.html

Igor talks about caching by

“No, currently the single way is:

1) add the cookie in proxy_cache_key

proxy_cache_key "http://cacheserver$request_uri $cookie_name";

2) add "X-Accel-Expires: 0" in response with the cookie.”

But from my understanding of “*X-Accel-Expires” *it expires the cache in
the cache repository as given below

“Sets when to expire the file in the internal Nginx cache, if one is used.”

Does this not mean that when I set cookie and pass “X-Accel-Expires: 0” it
expires the cache for the non logged in user too, for that cache key? A new
cache entry will then have to be created, right?

Should I go with “Cache-Control: max-age=0” approach?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Old thread: Cache for non-cookie users and fresh for cookie users

Quintin Par February 09, 2012 02:06AM

Re: Old thread: Cache for non-cookie users and fresh for cookie users

Maxim Dounin February 09, 2012 03:50AM

Re: Old thread: Cache for non-cookie users and fresh for cookie users

Quintin Par February 10, 2012 03:36AM

Re: Old thread: Cache for non-cookie users and fresh for cookie users

Piotr Sikora February 10, 2012 03:50AM

Re: Old thread: Cache for non-cookie users and fresh for cookie users

António P. P. Almeida February 10, 2012 09:18AM

Re: Old thread: Cache for non-cookie users and fresh for cookie users

António P. P. Almeida February 10, 2012 09:38AM

Re[4]: Old thread: Cache for non-cookie users and fresh for cookie users

Max February 10, 2012 10:42AM

Re: Re[4]: Old thread: Cache for non-cookie users and fresh for cookie users

António P. P. Almeida February 10, 2012 11:44AM

Re[8]: Old thread: Cache for non-cookie users and fresh for cookie users

Max February 11, 2012 01:14PM

Re[8]: Old thread: Cache for non-cookie users and fresh forcookie users

Max February 11, 2012 01:16PM

Re[8]: Old thread: Cache for non-cookie users andfresh for cookie users

Max February 11, 2012 01:26PM

Re: Re[8]: Old thread: Cache for non-cookie users andfresh for cookie users

Quintin Par February 18, 2012 02:38AM

Re[2]: Old thread: Cache for non-cookie users and fresh for cookie users

Max February 10, 2012 09:46AM

Re: Re[2]: Old thread: Cache for non-cookie users and fresh for cookie users

António P. P. Almeida February 10, 2012 10:08AM

Re: Re[2]: Old thread: Cache for non-cookie users and fresh for cookie users

Andrew Alexeev February 10, 2012 10:28AM

Re[6]: Old thread: Cache for non-cookie users and fresh for cookie users

Max February 10, 2012 12:50PM

Re: Re[6]: Old thread: Cache for non-cookie users and fresh for cookie users

Nginx User February 10, 2012 05:26PM

Re: Re[6]: Old thread: Cache for non-cookie users and fresh for cookie users

António P. P. Almeida February 10, 2012 07:08PM

Re: Re[6]: Old thread: Cache for non-cookie users and fresh for cookie users

Quintin Par February 11, 2012 09:50AM

Re[8]: Old thread: Cache for non-cookie users and fresh for cookie users

Max February 11, 2012 12:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready