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

feat: Add cache-related middlewares #541

Merged
merged 1 commit into from
Dec 28, 2024
Merged

Conversation

spencewenski
Copy link
Member

Add two middlewares related to browser caching:

  • CacheControlMiddleware: Sets the cache-control header for configured content types
  • EtagMiddleware: Handles an etag header in request/response headers. If the header value is the same in the req and res, then a 304 is returned with an empty body.

Closes #538

Add two middlewares related to browser caching:

- CacheControlMiddleware: Sets the `cache-control` header for configured
  content types
- EtagMiddleware: Handles an `etag` header in request/response headers.
  If the header value is the same in the req and res, then a 304 is
  returned with an empty body.
@spencewenski spencewenski merged commit 76c69f7 into main Dec 28, 2024
16 of 17 checks passed
@spencewenski spencewenski deleted the gh-538-cache-middleware branch December 28, 2024 04:30
@github-actions github-actions bot mentioned this pull request Dec 28, 2024
spencewenski pushed a commit that referenced this pull request Dec 28, 2024
## 🤖 New release
* `roadster`: 0.6.23 -> 0.6.24 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.6.24](roadster-v0.6.23...roadster-v0.6.24)
- 2024-12-28

### Added

- Add cache-related middlewares (#541)
- Add timestamps for when email change is confirmed (#537)
- Add User column to store the user's new email before it's confirmed
(#536)
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

cache-control header middleware
1 participant