This is a migrated thread and some comments may be shown as answers.

[Solved] Telerik ScriptRegistrar Preventing cache

0 Answers 121 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robbie Hughes
Top achievements
Rank 1
Robbie Hughes asked on 06 Feb 2013, 09:55 AM
Hi,

we are working with the ScriptRegistrar and we came accross a problem when releasing versions: the javascript and css code is cache. We wanted to add a timestamp to the url to have the cache ignoring the desired files but I don't see the way of doing that.

When I try .Add("Javascript.js?timestamp=1023203") it gives a virtual path directory exception 

is there a method that will append a giving timestamp to all the added javascript files? Couldn't find anything!

thanks

aclaration:

what i want the telerik script registar is to output:

<script type="text/javascript" src="/Application/Scripts/General.js?timestamp=10122012"></script>

instead of 

<script type="text/javascript" src="/Application/Scripts/General.js"></script>

can't find any reference for it on all the documentation I've read!

any help will be much apreciated!


Tags
General Discussions
Asked by
Robbie Hughes
Top achievements
Rank 1
Share this question
or