I would like to be able to have a version number appended to a css file located in my app_themes folder in my asp.net website so that modification to the file would force the browser to get the file from the server instead of using the one in the cache.
the css output path would look like ~/app_themes/blue/blue.css?v=1234
Any idea how it can be done without having to manually edit the filename?
A more detailed solution is available here:
Add url parameter to css file in asp themes folder
I'd try something like this
<link
rel="stylesheet"
href="/app_themes/blue/blue.css?v=<%=Global.VERSION_NUM%>">
Do that to all your CSS references, then when you make a deployment to your live site, you can just change the constant VERSION_NUM
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With