pquerna / cachecontrol

Golang HTTP Cache-Control Parser and Interpretation
Apache License 2.0
133 stars 17 forks source link

Handle empty `max-stale` directive #15

Closed skwair closed 4 years ago

skwair commented 4 years ago

This pull request introduces a new field MaxStaleSet in the RequestCacheDirectives to know if the max-stale directive has been set with no value, like specified in the RFC:

If no value is assigned to max-stale, then the client is willing to accept a stale response of any age.