jshttp / etag

Create simple HTTP ETags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why generated etag is wrapped in double qoutes?

JeelRajodiya opened this issue · comments

why is Etag wrapped by double quotes?

> etag('a string')
'"8-VV0B5sgyZrPp+SvYEZBTcMr2J3A"'

what's the point of wrapping it like this?

Because that is how RFC 7232 defines the etag grammar.