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

Add not found handler to router #652

Merged
merged 4 commits into from
Jan 28, 2021
Merged

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Oct 30, 2020

So far, the default not found handler was used from mux. To set specific headers, this must be overwritten.

@ruflin ruflin self-assigned this Oct 30, 2020
CHANGELOG.md Outdated
@@ -21,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Breaking changes

### Bugfixes
* Set cache headers for 404 and 400 to 0. [#649](https://github.com/elastic/package-registry/pull/649)
* Set cache headers for 404 and 400 to private, no-store. [#649](https://github.com/elastic/package-registry/pull/649)[#652](https://github.com/elastic/package-registry/pull/652)
Copy link
Contributor

@jonathan-buttner jonathan-buttner Oct 30, 2020

Choose a reason for hiding this comment

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

hmm we might want to leave this as it was and move the 652 part to unreleased right? Since we technically already released 0.13.0 🤷

Copy link
Member Author

Choose a reason for hiding this comment

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

ups, yes :-(

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated. I kept the correction to the old changelog in as it was not accurate.

@elasticmachine
Copy link

elasticmachine commented Oct 30, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #652 updated

    • Start Time: 2021-01-28T08:20:53.474+0000
  • Duration: 7 min 6 sec

  • Commit: f220f70

Test stats 🧪

Test Results
Failed 0
Passed 171
Skipped 0
Total 171

@ycombinator
Copy link
Contributor

Hey @ruflin, is this PR still relevant? If so, could you rebase and merge it? Thanks!

So far, the default not found handler was used from mux. To set specific headers, this must be overwritten.
@ruflin
Copy link
Member Author

ruflin commented Jan 28, 2021

Rebased. I think it is still relevant. Initially we had to fix an urgent CDN bug which we did. This will improve it further if I remember correctly to not cache 404.

@ycombinator
Copy link
Contributor

Thanks @ruflin. Going ahead and merging on your behalf. I'd like to cut a new release of the registry today and it would nice to get this one into that.

@ycombinator ycombinator merged commit 565e77e into elastic:master Jan 28, 2021
@ruflin
Copy link
Member Author

ruflin commented Jan 28, 2021

Thanks!

@ruflin ruflin deleted the not-found-handler branch January 28, 2021 11:49
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.

5 participants