jquery - Allow Varnish cache, without per-cookie cache version only for a specific front-end cookie -
bonjour à tous,
first post on stack overflow ;)
i want understand process varnish. i've not yet find answer question on internet.
i've drupal 7 website, in development, uses varnish (v4), works fine. no cookie generated drupal site.
this website allow each anonymous user manage "demand" (involving of many pages) , send content of demand our office. there no users management or account management anonymous users. improve performance, have installed varnish real first experience it.
i implement process of "demand" using jquery + cookie store relevant information. apache (v2.4) not called @ each request.
i think if cookie generated, caching process skipped varnish. use varnish without per-cookie cache version specific front-end cookie.
so know if possible varnish:
hey varnish if specific cookie present (i mean managed, cookie crud), not take care of , continue serve cached page).
if yes, explain me bit logic.
thank in advance.
matt.
every time application generates cookie sends set-cookie header browser can store new cookie. if varnish finds header doesn't cache default. happens cookie not set other people's browsers erroneously. summarizing, if want cache 1 page don't manipulate cookies in it.
but can call different page 1 want cache, using ajax, responsible cookies. in way, main page cached , every time need insert cookies other page nothing manipulate cookies.
Comments
Post a Comment