-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Purge cloudflare edge cache from the service #503
Purge cloudflare edge cache from the service #503
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall good, just a few comments
logging rather than throwing for CDN rt errs
This one seems ready now. Kindly take a look to see if we're good to merge. Otherwise, new opportunities are welcome too. Thanks. |
const expand = request.query.expand === '-files' ? '-files' : null // only support '-files' for now | ||
const result = await definitionService.get(coordinates, pr, force, expand) | ||
response.set('cache-tag', definitionService.tagFromCoordinates(result)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in order to build the hash correctly this should be
response.set('cache-tag', definitionService.tagFromCoordinates(result.coordinates))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand, you’re right; otherwise any tool additions will make it a different hash. Thanks for catching this!
@geneh can you take a look and see if this is ready to merge? |
I am closing this pull request. Please check the corresponding #418. |
Fixes #418