This repository has been archived by the owner on Feb 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Add more surrogate-keys #108
Labels
enhancement
New feature or request
Comments
I don't think this is needed anymore... so I think for helix-publish, we should only add the keys for for sources fechted directly from github. the only problem is see is, that the sha256+base64 is not available in fastly. sha256 returns a hex-encoded string. |
no, I just tested it in fastly-fiddle:
fails to set any response. using this works:
but it computes the base64 of the hex representation of the sha, which is not what we want. |
we could use the digest.hmac_sha256_base64() in helix-pipeline as well, with a dummy key, like @trieloff WDYT? |
closing as outdated. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently only the pipeline sets the surrogate-key based on the resource that is fetched. but the files service by helix-static or directly from the github content don't have one.
this is problematic, if one wants to invalidate the cache based on changes to the content or code repository. especially if resources are requested with additional params or headers, it is not easy to anticipate all possible external variations.
Suggest
for sources fechted directly from github, fastly should add the has of the raw github url as surrogate-key, similar to helix-pipeline
for sources fetched via helix-static, helix-static should add the surrogate-keys
for better support of a purge-all for helix-pages, the current
request.host
should also be added as surrogate-key.The text was updated successfully, but these errors were encountered: