Build toolBuild tooltypeRuns at build time. Nothing of it ships in the deployed application.See every one →What this type is →by a community orgby a community orgoriginPublished by a community organisation, so it outlives any one maintainer.See every one →

ui5-task-cachebuster

A UI5 builder task that cachebusts a standalone UI5 application by moving its build output into a timestamped subfolder and pointing index.html's resource roots at it.

Standalone UI5 applications have to handle cache busting themselves, unlike apps running inside SAP Fiori Launchpad. This task, run after generateResourcesJson, moves every build file except index.html into a /~timestamp~/ folder and rewrites data-sap-ui-resourceroots in index.html to point at it, so a new build forces browsers to reload static resources. Any other HTML file that must keep a stable path, such as a logout page routed to from xs-app.json, is excluded from the move through the excludeFromMove configuration. On SAP BTP Cloud Foundry with the managed approuter, moveResources: false is used instead, since the timestamp token in the path is ignored there.

Facts

Latestv3.4.0ReleasedLast pushLicenceApache-2.0

Where it sits

Lives in
Provides
Build and dev-server toolingUI5Build and dev-server toolingcapabilityServing an app locally and building it for deployment — proxying a backend, transpiling, bundling, and shaping the result for whatever will host it.

Who is behind it

UI5 CommunityUI5 CommunityOrganisationMaintains this
In the atlas: maintains 69
@ui5-community
maintainerBenjamin ReimPersonContributes to this
In the atlas: contributes to 9
@BenReim
Dimitar FenerskiPersonContributes to this
In the atlas: contributes to 23
@dfenerski
Florian VogtPersonContributes to this
In the atlas: contributes to 50, wrote 2
@flovogt
hannaolbPersonContributes to this
In the atlas: contributes to 7
@hannaolb
Peter MuessigPersonContributes to this
In the atlas: maintains 14, contributes to 80, wrote 1
@petermuessig
5 contributors

What it declares

Every artifact

Type
Build tool
Origin
By a community org

As a build tool

Distributed through
npm

Connections1

Install

npm add ui5-task-cachebuster

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from ui5-community/ui5-ecosystem-showcase under Apache-2.0, read
ui5-community/ui5-ecosystem-showcase/packages/ui5-task-cachebuster/README.mdOn GitHub

This task is only relevant for standalone applications!

👋 This is an open‑source, community‑driven project, developed and actively monitored by members of the UI5 community. You are welcome to use it, report issues, contribute enhancements, and support others in the community.

Task for ui5-builder, enabling cachebusting for standalone applications.

Prerequisites

⚠️ UI5 CLI Compatibility All releases of this UI5 CLI extension using the major version 3 require UI5 CLI V3. Any previous releases below major version 3 (if available) also support older versions of the UI5 CLI. But the usage of the latest UI5 CLI is strongly recommended!

Install

npm install ui5-task-cachebuster --save-dev

Configuration options (in $yourapp/ui5.yaml)

  • debug: true|false
    Verbose logging
  • moveResouces: true|false
    default true: moves all the files in the build to a subfolder named /~timestamp~/
    false: no files are moved and no subfolder created
  • excludeFromMove : eg. ["index.html", "logout.html"]
    only relevant if moveResources is true
    default ["index.html"]: the files which should not be moved into the timestamp subfolder

Usage

  1. Define the dependency in $yourapp/package.json:
"devDependencies": {
    // ...
    "ui5-task-cachebuster": "*"
    // ...
}
  1. configure it in $yourapp/ui5.yaml:

What is possible:

builder:
  customTasks:
  - name: ui5-task-cachebuster
    afterTask: generateResourcesJson
    configuration:
      debug: true | false
      moveResources: true | false
      excludeFromMove: ["index.html", "logout.html"]

For app in SAP BTP in Cloud Foundry environment with managed approuter:

builder:
  customTasks:
  - name: ui5-task-cachebuster
    afterTask: generateResourcesJson
    configuration:
      moveResources: false

If ui5-task-zipper is used you need to include the beforeTask config.

  - name: ui5-task-cachebuster
    beforeTask: ui5-task-zipper    

How it works

This is only relevant for standalone applications, not apps that run in SAP Fiori Launchpad

Why do we need this? "Cache busting is a way for updates to still happen when using web caching." To make sure that the newest deployed changes of the webapp are displayed, even though web caching is used by the client browsers, a cachetoken is added to the paths which point to the static files. This cachetoken is changing for each build, therefore the browser has to reload all resources if the cachetoken has changed.

Standalone apps have to explicitly deal with cachbusting.

This task can be used to move all files except index.html to a subfolder with the current timestamp as a name. In the index.html the data-sap-ui-resourceroots path is updated to include the /~timestamp~/ path like so: {"my.app": "./~1234241421~/"}. This dynamic cachebusting token ensures that the static resources will have to be reloaded after a new build was deployed.

If the app is deployed on SAP BTP in the Cloud Foundry environment with the managed approuter, the configuration moveResources: false should be used, since the ~token~ in the path to the files will be ignored.

If you included any other .html files in your project who's path should not change, like a logout.html which is routed to in the xs-app.json, you should add it to the excludeFromMove configuration. This takes an array of file paths (relative to webapp folder) which should not be moved into the timestamp subfolder.

Use Cases:

  • Standalone Web-Server: Adapt index.html + Move files into timestamp folder
  • CloudFoundry HTML5 Apps with managed approuter: Just adapt index.html
  • Neo HTML5 Apps: Adapt index.html + enable cachebuster handling in neo-app.json with ui5CacheBuster: true

License

This work is licensed under Apache 2.0.

Built with care (and a lot of caffeine). If this helped you build, test, or ship, the next coffee — or drink — is on you when you bump into a contributor.

Apache-2.0, read

History

Latest

v3.4.0

Features 1

Notes
Features
  1. v3.3.1

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  2. v3.3.0

    Features 1

    Notes
    Features
  3. v3.2.3

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  4. v3.2.2

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  5. v3.2.1

    Fixes 1

    Notes
    Bug Fixes
  6. v3.2.0

    Features 1, Fixes 1

    Notes
    Bug Fixes
    • ui5-task-cachebuster: support new resource-roots config option (#1166) (54215b5), closes #1165
    Features
  7. v3.1.1

    Fixes 1

    Notes
    Bug Fixes
  8. v3.1.0

    Features 1

    Notes
    Features
    • enhanced v4 compat + update dependencies (#1070) (2d7ed16)
  9. v3.0.9

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  10. v3.0.8

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  11. v3.0.7

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  12. v3.0.6

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  13. v3.0.5

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  14. v3.0.4

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  15. v3.0.3

    Fixes 1

    Notes
    Bug Fixes
    • ui5-task-cachebuster: update docu for afterTask configuration (#863) (d1b184b)
  16. v3.0.2

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  17. v3.0.1

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  18. v3.0.0dated in the atlas

    Breaking 1, Features 2, Fixes 1

    Notes
    Bug Fixes
    Features
    BREAKING CHANGES
    • The support for UI5 Tooling V2 has been removed
  19. v0.3.10

    Fixes 1

    Notes
    Bug Fixes
    • ui5-tooling-transpile: transpile at startup + caching (#757) (6c7946d)
  20. v0.3.9

    Fixes 1

    Notes
    Bug Fixes
  21. v0.3.8

    Fixes 1

    Notes
    Bug Fixes
  22. v0.3.7

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  23. v0.3.6

    Fixes 3

    Notes
    Bug Fixes
  24. v0.3.5

    Fixes 2

    Notes
    Bug Fixes
    • implement determineRequiredDependencies for all tasks (#692) (d27b55e)
    • improvements of projects for tooling 3.0 (#696) (6bd880f)
  25. v0.3.4

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  26. v0.3.3

    Fixes 1

    Notes
    Bug Fixes
    • ui5-tooling-modules: make amd bundling more robust for side effects (#679) (1d0e586)
  27. v0.3.2

    Fixes 1

    Notes
    Bug Fixes
    • ui5-tooling-modules: ignore relative paths (#676) (259aac7)
  28. v0.3.1

    Notes

    Note: Version bump only for package ui5-task-cachebuster

  29. v0.3.0

    Features 1

    Notes
    Features
    • ui5-tooling-transpile: enable config files (#660) (9f854ec)
  30. v0.2.2

    Fixes 1

    Notes
    Bug Fixes
  31. v0.2.1

    Fixes 1

    Notes
    Bug Fixes
    • ui5-task-cachebuster: regex in case of multi line (#656) (bbefd13)
  32. v0.2.0

    Features 1

    Notes
    Features
    • ui5-task-cachebuster: static alternative for UI5 app cachebuster (#644) (839bb48)
874downloads per week, npm
Weekly downloads for ui5-task-cachebuster26 complete calendar weeks from 2026-04-20 to 2026-10-18; the latest total is 874.20 Apr – 26 Apr: 1,69527 Apr – 3 May: 1,7144 May – 10 May: 1,45811 May – 17 May: 1,37418 May – 24 May: 2,85625 May – 31 May: 1,8161 Jun – 7 Jun: 1,1158 Jun – 14 Jun: 92315 Jun – 21 Jun: 1,65622 Jun – 28 Jun: 2,33329 Jun – 5 Jul: 1,7806 Jul – 12 Jul: 1,65913 Jul – 19 Jul: 1,50520 Jul – 26 Jul: 1,22727 Jul – 2 Aug: 1,4403 Aug – 9 Aug: 1,90710 Aug – 16 Aug: 3,24217 Aug – 23 Aug: 6,42224 Aug – 30 Aug: 4,10231 Aug – 6 Sept: 3,2547 Sept – 13 Sept: 1,91514 Sept – 20 Sept: 1,56721 Sept – 27 Sept: 2,36228 Sept – 4 Oct: 2,1735 Oct – 11 Oct: 1,49212 Oct – 18 Oct: 874
Build and dev-server tooling
  1. UI5 ToolsVS Code extension to serve, proxy, build and deploy UI5 projectsfrom UI5
  2. ui5-middleware-route-proxyUI5 server middleware proxying route prefixes to a backendfrom UI5
  3. ui5-task-cachebuster-indexingUI5 builder task preparing build output for the cachebusterfrom UI5
  4. ui5-task-transpile-genUI5 builder task transpiling ES6 to ES5 with Babelfrom UI5
  5. ui5-middleware-odata-recorderUI5 middleware recording OData traffic as mock server datasetsfrom UI5
  6. ui5-plugin-loaderUI5 Tooling v4 extension that registers other extensionsfrom UI5
  7. ui5-deployerUI5 Tooling module deploying Fiori/UI5 apps to SAP systemsfrom UI5
  8. ui5-task-dts-generatorUI5 builder task generating d.ts type declarationsfrom UI5
  9. ui5-task-minifierUI5 builder task minifying HTML, CSS and JSON filesfrom UI5
  10. ui5-middleware-oidcUI5 dev server middleware adding an OpenID Connect loginfrom UI5
  11. generator-ui5-library-af-deployYeoman generator for Application Frontend config in UI5 librariesfrom UI5
  12. ui5-middleware-destinationUI5 Tooling middleware proxying destinations and neo-app.json routesfrom UI5
  13. ui5-task-check-eocpUI5 build task warning when the app's UI5 version reaches EOCPfrom UI5
  14. @ui5/cliUI5 Tooling command line for project setup, dev server and buildfrom UI5
  15. ui5-task-btp-manifestUI5 Tooling task writing the service name into the importer manifestfrom UI5
  16. ui5-middleware-approuterUI5 CLI middleware proxying the dev server through @sap/approuterfrom UI5
  17. ui5-middleware-capUI5 CLI middleware running a CDS server inside the UI5 dev serverfrom UI5
  18. ui5-middleware-hmrExperimental UI5 middleware for hot module replacementfrom UI5
  19. ui5-middleware-iasyncUI5 middleware syncing interactions across browsers over websocketfrom UI5
  20. ui5-middleware-indexUI5 middleware serving a chosen welcome page at the root pathfrom UI5
  21. ui5-middleware-livereloadLive reload middleware for the UI5 dev serverfrom UI5
  22. ui5-middleware-oneloginUI5 middleware logging in with Playwright and reusing the sessionfrom UI5
  23. ui5-middleware-serveframeworkUI5 middleware serving a locally built UI5 frameworkfrom UI5
  24. ui5-middleware-servestaticUI5 middleware serving static resources from a path or npm packagefrom UI5
  25. ui5-middleware-simpleproxyDev-server middleware proxying requests to a backend systemfrom UI5
  26. ui5-middleware-ui5UI5 middleware including one UI5 application in anotherfrom UI5
  27. ui5-middleware-webjarsUI5 middleware serving static resources from JAR files (WebJars)from UI5
  28. ui5-middleware-websocketWebSocket support for Express-based dev servers such as UI5'sfrom UI5
  29. ui5-task-copyrightUI5 builder task appending copyright headers to source filesfrom UI5
  30. ui5-task-flatten-libraryUI5 builder task flattening library output for SAP NetWeaverfrom UI5
  31. ui5-task-i18ncheckUI5 builder task checking XML views for missing i18n textsfrom UI5
  32. ui5-task-minify-xmlUI5 builder task minifying XML views and fragmentsfrom UI5
  33. ui5-task-pwa-enablerUI5 builder task turning a UI5 app into a progressive web appfrom UI5
  34. ui5-task-zipperBuild task packaging the UI5 build result as a zip archivefrom UI5
  35. ui5-tooling-lessUI5 CLI extension compiling Less files into CSSfrom UI5
  36. ui5-tooling-modulesUI5 tooling extensions loading npm packages as UI5 modulesfrom UI5
  37. ui5-tooling-stringreplaceUI5 CLI extension for string replacement during the buildfrom UI5
  38. ui5-tooling-transpileUI5 CLI extension transpiling code during the UI5 buildfrom UI5
  39. @ui5/loggerInternal logger of the UI5 CLIfrom UI5
  40. @ui5/middleware-code-coverageUI5 CLI middleware for Istanbul code coveragefrom UI5
  41. @ui5/tooling-webcDeprecated UI5 Tooling extensions for UI5 Web Components wrappersfrom UI5

Details

Sources4
npm registrydiscovered herechecked
npm registry, ui5-task-cachebusterversion, releases, installschecked
packages/ui5-task-cachebuster/README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
latestv3.4.0
first release
releases and cadence33, ~71d median
discovered vianpm registry
first seen in the atlas
ecosystem and domainui5, developer-experience
Contributors5

From the repository’s contributor list, .

History in the atlas1
  1. First seen.
For your agent
Ref
artifact:ui5-community-ui5-task-cachebuster
JSON
/artifacts/ui5-community-ui5-task-cachebuster.json
MCP
Connecting an agent