Project

General

Profile

Actions

Feature #14539

open

Allow for explicit caching lifetime control (cache-busting)

Added by Matthias Van Ceulebroeck 3 months ago. Updated 16 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
05/19/2026
Due date:
% Done:

0%

Estimated time:

Description

In #12320 the Cache-Control header could be added to the server, to control the maximum cache lifetime of static resources.
This would be applied globally to all statically server files.

However, this setting would only apply to Wt's own http server, and be limited to one global setting.
We should be able to configure this per resource. So that, if changes have occurred, the application can "force" the resource to be updated.

This is something that should be available independent of the used server backend (wthttp / fcgi / tomcat (for JWt)).

It can be done via an additional query string, like a version, modification timestamp or hash. Known as cache-busting.
The browser will see this additional query string, and consider the value unique, if the value does not correspond to a previous request, resulting in a new "fresh" pull of the resource.

Actions #1

Updated by Romain Mardulyn 16 days ago · Edited

  • Status changed from New to Rejected
Actions #2

Updated by Romain Mardulyn 16 days ago

  • Status changed from Rejected to New
Actions #3

Updated by Romain Mardulyn 16 days ago · Edited

Clarification:

The resources here are the resources in the docroot. Not WResource which already have cache busting.

Actions #4

Updated by Romain Mardulyn 16 days ago

  • Target version set to 4.15.0
Actions

Also available in: Atom PDF