Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Caching SharePoint 2016 ScriptLink rev参数永远不会更改为elements.xml中的CustomAction_Caching_Sharepoint_Browser_Hyperlink - Fatal编程技术网

Caching SharePoint 2016 ScriptLink rev参数永远不会更改为elements.xml中的CustomAction

Caching SharePoint 2016 ScriptLink rev参数永远不会更改为elements.xml中的CustomAction,caching,sharepoint,browser,hyperlink,Caching,Sharepoint,Browser,Hyperlink,SharePoint 2016定制应用程序(内部部署)已部署为功能。应用程序本身仅通过CustomAction元素扩展特定页面上的功能区,页面上没有其他UI元素 问题: URL自动生成的?rev参数从未更改,因此在部署新版本的应用程序时,我会遇到严重的浏览器缓存问题 示例: 这是elements.xml的自定义操作 <CustomAction Id="Custom.Script.Languages" ScriptSrc="CustomApp/js/Langua

SharePoint 2016定制应用程序(内部部署)已部署为功能。应用程序本身仅通过CustomAction元素扩展特定页面上的功能区,页面上没有其他UI元素

问题:
URL自动生成的?rev参数从未更改,因此在部署新版本的应用程序时,我会遇到严重的浏览器缓存问题

示例:
这是elements.xml的自定义操作

<CustomAction Id="Custom.Script.Languages" ScriptSrc="CustomApp/js/Languages.js" Location="ScriptLink" Sequence="2" />

结果在客户端的浏览器中显示为

<script type="text/javascript" src="/_layouts/15/CustomApp/js/languages.js?rev=53fb7f7d7c5c01e003ee62%3D%3DTAG0"></script>

生成的?rev始终保持不变,但我必须有一个不断变化的?rev参数值,并且从未让SharePoint这样做。

有人能解决这个问题吗

谢谢并致以最良好的问候