ASP.NET Javascript缓存破坏

时间:2017-10-23 16:35:14

标签: javascript asp.net vb.net

我试图这样做:

<script type="text/javascript" src="js/pages/cca.js?rev=<%= DateTime.Now.Ticks %>"></script>

页面无法加载,我得到:

Exception thrown: 'System.Threading.ThreadAbortException' in mscorlib.dll

该网站将说:

localhost redirected you too many times. ERR_TOO_MANY_REDIRECTS

我对asp.net并不熟悉,有人能指出我的错误吗?

编辑:

堆栈跟踪: enter image description here

1 个答案:

答案 0 :(得分:0)

我不得不将它包装在rad代码块中,我不知道为什么但Telerick是原因:

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript" src="js/pages/cca.js?rev=<%= DateTime.Now.Ticks %>"></script>
</telerik:RadCodeBlock>