Skip to content

Adds 304 support by hashing response body to create an ETag. - #1

Open
davidwallacejackson wants to merge 1 commit into
masterfrom
client-side-caching
Open

Adds 304 support by hashing response body to create an ETag.#1
davidwallacejackson wants to merge 1 commit into
masterfrom
client-side-caching

Conversation

@davidwallacejackson

Copy link
Copy Markdown

Comment thread index.js
return true;
}

response.header('Cache-Control', 'private, no-cache');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

There are a few spots in poseidon where we set private, no-cache, no-store, must-revalidate (doing a search for no-cache in dh2o-poseidon/src shows 4 files and a no_cache middleware that is applied to the entire app. Do any of these need to be changed?

I guess this line will correct that header if poseidon has set it to something else so maybe it doesn't matter.

@wescleveland

Copy link
Copy Markdown

One small request and one probably unnecessary question for further digging into poseidon.

If you have a certain request in mind to test this out with let's get it into edge asap and see what the impact is.

We need to get a tag on the current version of master then merge this and create a new tag, then get poseidon master to use that new tag. If things go well then we can include this in our upcoming release, if it needs more work then we will have the old tag to rollback for the release.

LGTM for testing in edge

@wescleveland

Copy link
Copy Markdown

also almost forgot

👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂 👍 😄 👯 🎂

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.

2 participants