Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 21, 2012 07:17 AM by raju dasa
0 Points
5 Posts
Dec 18, 2012 08:24 AM|LINK
I'm writing asp.net 4.0 websit and using a js in my ascx file:
<script src="../../Scripts/formTools.js" type="text/javascript"></script>
and contain this ascs in a aspx file, when running the website I found in my developer tool that the js URL is changed to following:
/Scripts/formTools.js?_=1355813864964 GET 200 application/x-javascript 14.70 KB 46 ms JS Library XMLHttpRequest 7223 0 31 15 0 411157
This causes the js file is refreshed every time instead of from browser cache.
So I want to know how this postfix is added since I didn't write any special code for this function.
Star
14871 Points
1529 Posts
Microsoft
Dec 21, 2012 02:18 AM|LINK
Hi pieroduan,
Thanks for your post.
which browser are you using?
does same issue happene on other js library in ascx file?
A simplest sample to reproduce the issue you described would be helpful.
thanks.
Participant
1490 Points
635 Posts
Dec 21, 2012 06:37 AM|LINK
pieroduan I'm writing asp.net 4.0 websit and using a js in my ascx file: <script src="../../Scripts/formTools.js" type="text/javascript"></script> and contain this ascs in a aspx file, when running the website I found in my developer tool that the js URL is changed to following: /Scripts/formTools.js?_=1355813864964 GET 200 application/x-javascript 14.70 KB 46 ms JS Library XMLHttpRequest 7223 0 31 15 0 411157 This causes the js file is refreshed every time instead of from browser cache. So I want to know how this postfix is added since I didn't write any special code for this function.
Cannot u send ur proj to SkyDrive or something for us to analyze?
14396 Points
2449 Posts
Dec 21, 2012 07:17 AM|LINK
Hi,
Try setting release mode:
http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.scriptmode.aspx
pieroduan
0 Points
5 Posts
Why js file is added postfix like .js?_=1355813864964
Dec 18, 2012 08:24 AM|LINK
I'm writing asp.net 4.0 websit and using a js in my ascx file:
<script src="../../Scripts/formTools.js" type="text/javascript"></script>
and contain this ascs in a aspx file, when running the website I found in my developer tool that the js URL is changed to following:
/Scripts/formTools.js?_=1355813864964 GET 200 application/x-javascript 14.70 KB 46 ms JS Library XMLHttpRequest 7223 0 31 15 0 411157
This causes the js file is refreshed every time instead of from browser cache.
So I want to know how this postfix is added since I didn't write any special code for this function.
Yanping Wang...
Star
14871 Points
1529 Posts
Microsoft
Re: Why js file is added postfix like .js?_=1355813864964
Dec 21, 2012 02:18 AM|LINK
Hi pieroduan,
Thanks for your post.
which browser are you using?
does same issue happene on other js library in ascx file?
A simplest sample to reproduce the issue you described would be helpful.
thanks.
Feedback to us
Develop and promote your apps in Windows Store
ToughMan
Participant
1490 Points
635 Posts
Re: Why js file is added postfix like .js?_=1355813864964
Dec 21, 2012 06:37 AM|LINK
Cannot u send ur proj to SkyDrive or something for us to analyze?
raju dasa
Star
14396 Points
2449 Posts
Re: Why js file is added postfix like .js?_=1355813864964
Dec 21, 2012 07:17 AM|LINK
Hi,
Try setting release mode:
http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.scriptmode.aspx
rajudasa.blogspot.com || blog@opera