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

Don't cache the checker healthcheck endpoint #468

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jonathonherbert
Copy link
Contributor

What does this change?

Don't use caching for the Checker service, to enable the lovely Prout-bot to do its work (#465.)

We use Cloudfront to improve service latency for global users by removing TCP slowstart and reducing TLS handshake latency – we don't care about caching content.

(Initially this PR just removed caching for the healthcheck endpoint (620eb37), but on reflection I think removing caching entirely is more appropriate.)

How to test

Deploy to CODE or PROD. You should no longer see X-Cache: Hit from cloudfront headers on requests.

@jonathonherbert jonathonherbert requested a review from a team as a code owner April 10, 2024 08:08
@jonathonherbert jonathonherbert force-pushed the jsh/do-not-cache-healthcheck branch from e052c27 to 2dbf7af Compare April 10, 2024 08:08
Copy link
Contributor

@simonbyford simonbyford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a reasonable change. Unfortunately when I deployed the change to CODE, I was greeted by this error:

Screenshot 2024-07-31 at 16 17 50

https://checker.typerighter.code.dev-gutools.co.uk/rules

I appreciate it's been a while since you proposed this change. Do you remember seeing anything like this in your testing?

@jonathonherbert
Copy link
Contributor Author

Thanks for testing thoroughly! I'll revisit this PR soon.

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.

3 participants