I'm deploying an ASP.Net web application to a web farm using a PowerShell script. Obviously I want the ETags to be the same across both servers.
I understand the the ETag is generated using Filetimestamp:ChangeNumber
however I don't know how to set the ChangeNumber of the files. I found an blog post(Ref 1) that claims to do this, however it sets LastWriteTime
and the CreationTime
.
Will setting the LastWriteTime
and the CreationTime
to be the same as the source file force the ETags to be the same? Or do I need to somehow set the ChangeNumber
?
Is it possible to set the ChangeNumber
using PowerShell? Or have I misunderstood ETags completely?
R开发者_如何学Goef 1. http://omaralzabir.com/synchronize-file-date-time-in-multiple-servers-solve-iis-etag-problem/
精彩评论