Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesmodule release and browser cache refreshmodule release and browser cache refresh
Previous
 
Next
New Post
4/5/2017 8:05 PM
 

Does DNN handle this for me, that when I release new module .css and .js files get refreshed in client browser cache?

I guess DNN should do that by adding to querystring of .css/.js files module version. DNN adds something like ?cdv=59, but is this it?

 

 
New Post
4/5/2017 8:20 PM
 
I figured out this cdv is not it.
I solved it like this but only for JS files:

string versionStr = "?v" + FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).ProductVersion.ToString();

ClientResourceManager.RegisterScript(page, "/DesktopModules/Atena3/clientLibs/atena3.js"+versionStr , 100000);

And version you specify in
assemblyinfo.cs:
[assembly: AssemblyVersion("00.00.40.00")]
[assembly: AssemblyFileVersion("00.00.40.00")]

 

It doesnt work for css files (If i use  ClientResourceManager.RegisterStyleSheet), version query string param is not added. How do i achieve that?

 
New Post
4/5/2017 8:36 PM
 
Actually that cdv parameter might be your answer - http://dynamisys.co.uk/ArticlesDownlo...

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
4/5/2017 8:38 PM
 

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
4/6/2017 10:50 AM
 
So cdv gets incremented each time you install an extension. Quote from one of pages you posted.
" DNN increments the number when an extension is installed, a DNN upgrade is performed, the cache is cleared"
I tested this now and it is true.
Problem solved. Thanks.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesmodule release and browser cache refreshmodule release and browser cache refresh


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out