I store JavaScript files that are used in all of our site collections in the layouts folder
hive: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\custom\
)
I reference them in the masterpage like so:
<SharePoint:ScriptLink language="javascript" name="custom/test.js" runat="server" Localizable="false" />
I get nice caching of the file:
Unfortunately the rev
hash does not get modified when I change the file test.js
; I was under the impression it should very well change upon modification of the file.
Is this expected behaviour? How can I make SP deliver an updated rev
hash other than restarting the application pool?
v=1.1
likename="custom/test.js?v=1.1"
for example