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

[Solved] Version key in ~/asset.axd link

0 Answers 106 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.
Dmitry Polskoy
Top achievements
Rank 1
Dmitry Polskoy asked on 23 Apr 2010, 04:40 PM
Good day.
I'm trying to specify a version number for my shared asset group (defined in web.config) to have an ability to force JS/CSS reload in the user's browser.
Here is my configuration:
<telerik> 
        <webAssets> 
            <scripts> 
                <add name="charts" combined="true" compress="true" version="5"
                    <items> 
                      <add source="js1.min.js" /> 
                      <add source="js2.min.js" /> 
                    </items> 
                </add> 
            </scripts> 
 </webAssets> 
</telerik> 


As a result I have "~/asset.axd?id=charts" link in the HTML without any version information.
How should I configure asset group to have its version number in the asset's link?

Edit:
I found in WebAssetItemManager.cs the following piece of code:
string virtualPath = "{0}?{1}={2}".FormatWith(assetHandlerPath, httpServer.UrlEncode(WebAssetHttpHandler.IdParameterName), httpServer.UrlEncode(id)); 

Unfortunately, it seems like there is no support for Version parameter in asset.axd link.
Or there is something else?

Thank you.
Tags
General Discussions
Asked by
Dmitry Polskoy
Top achievements
Rank 1
Share this question
or