This question is locked. New answers and comments are not allowed.
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:
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:
Unfortunately, it seems like there is no support for Version parameter in asset.axd link.
Or there is something else?
Thank you.
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.