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

ETags #625

Merged
merged 45 commits into from
Oct 3, 2023
Merged

ETags #625

merged 45 commits into from
Oct 3, 2023

Conversation

peterjan
Copy link
Member

@peterjan peterjan commented Sep 28, 2023

This PR sets ETags on the response headers and changes our serve endpoint to make use of http.ServeContent. That's nice because it'll handle caching related request headers and return 304 Not Modified when possible, allowing clients to cache our content locally.

I tested this manually but I thought it could be fun to play-test this PR on the nextcloud setup you have maybe? That should highlight any issues pretty fast I guess.

@peterjan peterjan self-assigned this Sep 28, 2023
@peterjan peterjan mentioned this pull request Sep 28, 2023
@peterjan peterjan changed the title http.ServeContent ETags Sep 28, 2023
@peterjan peterjan marked this pull request as ready for review September 28, 2023 13:59
stores/multipart.go Show resolved Hide resolved
bus/bus.go Show resolved Hide resolved
worker/upload.go Outdated Show resolved Hide resolved
worker/serve.go Outdated Show resolved Hide resolved
worker/serve.go Outdated Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl merged commit cffc39a into master Oct 3, 2023
6 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the pj/serve-content branch October 3, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants