File not updating in symlink'd folder in IIS

Posted by Daniel Short on Server Fault See other posts from Server Fault or by Daniel Short
Published on 2011-02-16T14:28:03Z Indexed on 2011/02/16 15:27 UTC
Read the original article Hit count: 281

Filed under:
|
|

I have the following setup:

Site1/Shared/ - Physical folder
Site2/Shared/ - symlink using mklink to Site1/Shared

I've updated a javascript file in Site1/Shared/scripts, and the change is being reflected on Site1. However, the change is not being reflected through IIS on Site2. When I open Site1/Shared/scripts/common.js and Site2/Shared/scripts/common.js, they match exactly. But when I view the files through Safari, Firefox, Chrome, IE, from any machine (even machines that have never visited the sites), the change is not reflected on Site2.

Here are URLs to the files to review:

Site 1: http://www.landsofamerica.com/shared/scripts/common.js

Site 2: http://www.landsoftexas.com/shared/scripts/common.js

These files look exactly the same when logged onto the server, and the shared folder under landsoftexas.com is a symlink created using mklink to the shared folder under landsofamerica.com.

Any idea what might be causing IIS to serve the wrong file?

© Server Fault or respective owner

Related posts about iis7

Related posts about symbolic-link