Skip to content

Conversation

@ncardeli
Copy link
Contributor

@ncardeli ncardeli commented Nov 9, 2020

Unified the criteria for adding a cache invalidation token for cache busting of static resources, with the criteria used in Java standard classes.
This was an issue with the JavaScript render file of User Controls, because in DotNet no token was added when including the resource (see related issue).

Changes proposed in this Pull Request

  • Added new GetURLBuildNumber method that returns a cache invalidation token when none was provided (except when the URI is absolute)
  • Moved GetCacheInvalidationToken method to GxContext so we can re-use it from GetURLBuildNumber.
  • Used GetURLBuildNumber in methods that include stylesheets and JavaScript files, following the same criteria as in Java (see Java standard classes AddStyleSheetFile and AddJavaScriptSource methods).
  • Also, code formatting

Issue:84288

Unified the criteria used in Java standard classes for adding
a cache invalidation token for cache busting of static resources
@genexusbot
Copy link
Collaborator

Cherry pick to beta failed, 1 conflicted file
  • dotnet/src/dotnetframework/GxClasses/Middleware/GXHttp.cs

@genexusbot genexusbot added the conflict Conflict merging to beta branch label Nov 9, 2020
@genexusbot
Copy link
Collaborator

Manual cherry pick to beta success

@genexusbot genexusbot removed the conflict Conflict merging to beta branch label Nov 9, 2020
@ncardeli ncardeli merged commit cf95418 into master Nov 10, 2020
@ncardeli ncardeli deleted the update/unify-cache-invalidation-token branch November 10, 2020 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants