Variables used as cache key


1 comment

  • Peter Wohlers


    By default, Fastly uses, req.url and a generation tag (to facilitate purge_all) as the cache key.

    you can add a Vary: on those headers if you want to be able to purge all of the variants in one shot, but otherwise you could add those different attributes to the cache key. You would have to purge using those attributes as well then and I would encourage exploring surrogate-keys for purging as a strategy. Doc on manipulating the cache key is here:

    Comment actions Permalink

Please sign in to leave a comment.