Giter Site home page Giter Site logo

mstr-web-versioning's Introduction

mstr-web-versioning

Description

MicroStrategy Web appends the postfix "?v=-[mstr_version_hash]" to allow client side caching. This is good when you're working in environment with multiple versions of MicroStrategy but, if this is not the case and you would like to remove such postfix, you can incorporate this plugin in your MicroStrategy Web application


To remove the postfix added to each file served by MicroStrategy Web

As you have noticed before, most of the JS and CSS files served by MSTR have a postfix that looks like this:

http://{mstr_url}/style/desktop.css?v=-[mstr_version_hash]

Where v=-[mstr_version_hash] is a string that represents the hashed MicroStrategy Web Version value.

This postfix can be removed by adding a configuration file "browserSettings.xml" inside your plugin folder; the destination path is:

[plugin_folder_name]/WEB-INF/xml/config/browserSettings.xml

The content of such file should be:

<browser-settings version="1.0">
	<browser-setting name="dbf" value="32" />
</browser-settings>

With this, just restart your Web Server (Tomcat or other) and you will see that, most of the CSS and JSS files will not have this postfix anymore.


To test this, we can add a CSS file to change the color of button "Create" at Desktop page: [plugin_folder_name]/style/desktopPage.xml

Content of file:

@charset "UTF-8";

.mscld-create {
	background-color: orange !important;
}

We changed the background-color and restarted our web server to confirm the file didn't have the postfix "?v=-xxxxxxx"


This plugin was provided by MSTR SDK

Written by Daniel Parra

July 2017

mstr-web-versioning's People

Contributors

daniel-mstrsdk avatar

Stargazers

 avatar  avatar

Watchers

 avatar

mstr-web-versioning's Issues

How to change versioning algorithmn?

Hey,

disabling the file versioning is nice. Do you know how to change versioning algorithmn too?

Background:
We are running on same MicroStrategy version for long time (mostly for appr. 3 years). In this time we often enhance the Web UI with custom plugins and CSS. Everytime we release an update we are struggling with browser caching issues because the browsers of users don't reload CSS files immediately. MicroStrategy does not use E-Tag or something. Cache-control header does also not work in all circumstances.

Thx for your help.

Regards
Thomas

EDIT: I've posted a question in MicroStrategy community too at https://community.microstrategy.com/s/question/0D54400006kD0JrCAK/how-to-change-web-files-eg-css-or-js-versioning-algorithmn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.