开发者

Set the Filetimestamp:ChangeNumber with PowerShell to force ETags in IIS to be consistent across a webfarm

开发者 https://www.devze.com 2023-04-01 15:41 出处:网络
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'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/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号