Redbot reports that my webpage has invalid header:
The ETag header's syntax isn't valid.
My headers are set to:
ETag: 4ae413bd
Why is it invalid?
What is the syntax for an ETag?
Redbot reports that my webpage has invalid header:
The ETag header's syntax isn't valid.
My headers are set to:
ETag: 4ae413bd
Why is it invalid?
What is the syntax for an ETag?
As Arnaud mentioned, make sure that you have quoted the value.
replace
with
if you got here because of the kind of stack trace i wrote below, make sure you uncheck the option in visual studio that throws this error :
"An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL". This means it can be pretty much anything.
The problem is probably the syntax, use:
Try
ETag: "4ae413bd"
. The value of an ETag must follow the ABNF form:, which is basically
([wW]/)?"([^"]|\\")*"
in regular regex.Note that both
"\"
and"/"
are valid values for etags.References: section-14.19, section-3.11, section-2.2.