I have wrote a simple IHttpModule
void context_PreSendRequestHeaders(object sender, EventArgs e)
{
//remove default
HttpContext.Current.Response.Headers.Remove("ETag");
//add version one
HttpContext.Current.Response.Headers.Add("ETag", "Test1.0");
}
where I want to remove IIS ETag and add my own for controlling javascript and css file requests from clients - as in case of update I want it will be refreshed automatically. the client response ok to the ETag
If-None-Match: Test1.0 If-Modified-Since: Mon, 02 Jun 2014 11:08:54 GMT
but the IIS always returns the content instead of 304