![]() You need to use both rewrite rules and response headers together to implement a cache vary based on a vary value. It's different with a vary value, as it is not passed along by the browser. Therefore, a rewrite rule is not required for retrieval of the cache object. Once a vary cookie is set by the browser, it will continue to be sent with each request for that URL until that cookie expires or is unset. In general, response headers are preferred for vary cookies, and rewrite rules are not required. The five requests will all be served a different cache entry, because their final VARY results are different. Request E has no cookies, but vary value ismobile is set, so the vary string is ismobile.Request D has the cookies my_cookie=Alabama and my_cookie2=Apple and vary value ismobile is set, so the vary string is my_cookie=Alabama&my_cookie2=Apple + ismobile.Request C has the cookie my_cookie=Alabama and vary value ismobile is set, so the vary string is my_cookie=Alabama + ismobile.Request B has the cookie my_cookie=Alabama and no vary value is set, so the vary string is my_cookie=Alabama.Request A has no cookies and no vary value is set, so the vary string is blank. ![]() Suppose the server is instructed to vary on the cookies my_cookie and my_cookie2. LiteSpeed Memcached LiteSpeed Memcached.Understanding Response Status Codes 200 and 304.Advanced Concepts Advanced Concepts Table of contents. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |