regex - Nginx/fastcgi custom cache key -


i'm new nginx , have been playing around (and reading as can) setting fastcgi cache keys.

ideally, i'd cache key value entire url (including query string) exception of query string params begin utm_ or cb.

i've learned can use $host$request_uri set cache key equal entire url query strings, or $host$uri using no query strings. however, can't figure out how integrate conditional logic.

ideally, of these urls end same cache key:

http://example.com/?p=1&cb=8827387 http://example.com/?p=1&cb=873644 http://example.com/?p=1&utm_source=287333 

any assistance (especially in regex area) appreciated.

may information you:

http://www.alexjs.eu/making-nginx-ignore-query-string-parameters/


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -