Skip to content
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

Closed

Conversation

storrisi
Copy link
Contributor

Fixes #418

Copy link
Contributor

@AlexWebYourmind AlexWebYourmind left a 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

Ignacio Rodriguez added 2 commits May 3, 2019 13:09
@storrisi storrisi marked this pull request as ready for review May 3, 2019 17:09
@ignacionr
Copy link
Member

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))
Copy link
Member

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))

Copy link
Member

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!

@iamwillbar
Copy link
Contributor

@geneh can you take a look and see if this is ready to merge?

@geneh
Copy link
Contributor

geneh commented Jun 26, 2019

I am closing this pull request. Please check the corresponding #418.

@geneh geneh closed this Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

purge cloudflare edge cache from the service
6 participants