Syntax for ETag?

前端 未结 4 882
滥情空心
滥情空心 2020-12-09 15:44

Redbot reports that my webpage has invalid header:

The ETag header\'s syntax isn\'t valid.

My headers are set to:



        
4条回答
  •  独厮守ぢ
    2020-12-09 16:18

    As Arnaud mentioned, make sure that you have quoted the value.

    replace

    new EntityTagHeaderValue("0");
    

    with

    new EntityTagHeaderValue("\"0\"");
    

提交回复
热议问题