You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CSS/JS version parameter in templatelayout.php has to consider the app version #11374
As you can see, a version parameter (?v=) is appended to the URL, this has the reason that browsers are caching the file and we want to ensure that always the newest file is delivered and there are no caching problems.
This version parameter is generated in lib/private/templatelayout.php as following:
The problem here is that it only considers the ownCloud version, but not the app version itself. Which means that independent apps might suffer from problems when calling addScript or addStyle and are being updated independently from the ownCloud version. In this case still the old hash would be used.
The solution here is to detect the version of the specified application and calculate the hash from the app version.
changed the title [-]CSS version parameter in templatelayout.php has to consider the app version[/-][+]CSS/JS version parameter in templatelayout.php has to consider the app version[/+]on Oct 1, 2014
Activity
[-]CSS version parameter in templatelayout.php has to consider the app version[/-][+]CSS/JS version parameter in templatelayout.php has to consider the app version[/+]LukasReschke commentedon Oct 1, 2014
@karlitschek Something to consider if we want to update apps in the future independently.
karlitschek commentedon Oct 1, 2014
very good point. This should be indeed changed to use the core version plus the app version.
Add app version to JS and CSS