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

Save expire and last-modified Http cache headers #41

Merged
merged 2 commits into from
Nov 26, 2018
Merged

Conversation

nitriques
Copy link
Member

And send them to pingback upon successful update

This will allow the crawler to act better (in the future) with http
cache.
This allows pingback handlers to validate that algolia's new saved
value is properly up to date.
app.js Show resolved Hide resolved
@@ -35,6 +35,7 @@ module.exports = (config) => {
result: data.result,
action: data.action,
url: data.url,
'last-modified': data.lastModified,
Copy link
Contributor

Choose a reason for hiding this comment

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

its the only one quoted. we should quote all other for consistency

Copy link
Contributor

Choose a reason for hiding this comment

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

or maybe use camel-case?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, I preferred to use the "spec'ed" spelling...

@nitriques nitriques merged commit 82bf975 into dev Nov 26, 2018
@nitriques nitriques deleted the http-cache-headers branch November 26, 2018 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants