Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Only attempt to cache GET requests #11

Merged
merged 1 commit into from
Jun 3, 2015
Merged

Only attempt to cache GET requests #11

merged 1 commit into from
Jun 3, 2015

Conversation

wibblymat
Copy link
Contributor

Caching other types of request is prohibited by the spec and can result in console error spam.

Closes #10

R: @addyosmani @jeffposnick

@addyosmani
Copy link
Contributor

Changes LGTM. Would like an LGTM2 by @jeffposnick before we land this. Thanks Mat!

@wibblymat
Copy link
Contributor Author

Hey @jeffposnick, Addy wanted another LGTM for this. I think this solves Polymer/polymer-starter-kit#64

@addyosmani
Copy link
Contributor

friendly ping @jeffposnick

@jeffposnick
Copy link
Contributor

Sorry, missed this!

If you feel like combining request.method === 'GET' with a && into a single if() that would cut down on nesting. Otherwise, LGTM and feel free to merge either way.

@addyosmani
Copy link
Contributor

SG. @wibblymat I'll leave it up to you to merge when you're happy with whether to make the above adjustment or not :)

@wibblymat wibblymat force-pushed the only-cache-get branch 2 times, most recently from 4bb1715 to c60f225 Compare June 3, 2015 09:25
Caching other types of request is prohibited by the spec.

Closes #10
@wibblymat
Copy link
Contributor Author

Made the change. Will merge and tag v2.0.2

wibblymat added a commit that referenced this pull request Jun 3, 2015
Only attempt to cache GET requests
@wibblymat wibblymat merged commit a3011cb into master Jun 3, 2015
@wibblymat wibblymat deleted the only-cache-get branch November 17, 2015 20:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't try to cache non-GET requests
3 participants