Variables used as cache key

Comments

1 comment

  • Peter Wohlers

    Hi-

    By default, Fastly uses req.http.host, 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: https://docs.fastly.com/guides/vcl/manipulating-the-cache-key

    0
    Comment actions Permalink

Please sign in to leave a comment.