devpunks / snuggsi

snuggsi ツ - Easy Custom Elements in ~1kB
https://snuggsi.com
MIT License
398 stars 17 forks source link

Validator (E-Tag and Last-Modified) #169

Closed snuggs closed 3 years ago

snuggs commented 6 years ago

@tmornini has expressed the importance of having E-Tags. I concur. I feel a small piece of Validator middleware is good enough. Although it is confusing of my existing definition of "Validation". but the specs never lie. Wondering if this is something where "Form validation" would go as well. But feels like more "cache validation" related. Which i'd rather have a bonafied Cache object (perhaps with a .validate (data) api. Ok I think I understand "Validator" better in the spec from writing it out. It's the "Valid" in Cache inVALIDation. /cc @brandondees.

https://tools.ietf.org/html/rfc7231#section-7.2