Project

General

Profile

Actions

Feature #14539

open
MV RM

Allow for explicit caching lifetime control (cache-busting)

Feature #14539: Allow for explicit caching lifetime control (cache-busting)

Added by Matthias Van Ceulebroeck 5 months ago. Updated about 16 hours ago.

Status:
Review
Priority:
Normal
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.

RM Updated by Romain Mardulyn 2 months ago · Edited Actions #1

  • Status changed from New to Rejected

RM Updated by Romain Mardulyn 2 months ago Actions #2

  • Status changed from Rejected to New

RM Updated by Romain Mardulyn 2 months ago · Edited Actions #3

Clarification:

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

RM Updated by Romain Mardulyn 2 months ago Actions #4

  • Target version set to 4.15.0

ED Updated by emil de keyser about 2 months ago Actions #5

  • Status changed from New to InProgress
  • Assignee set to emil de keyser

ED Updated by emil de keyser about 2 months ago Actions #6

  • Status changed from InProgress to Review
  • Assignee deleted (emil de keyser)

RM Updated by Romain Mardulyn about 1 month ago Actions #7

  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn 28 days ago Actions #8

  • Status changed from Review to InProgress
  • Assignee changed from Romain Mardulyn to emil de keyser

RM Updated by Romain Mardulyn 27 days ago Actions #9

  • Status changed from InProgress to Review
  • Assignee changed from emil de keyser to Romain Mardulyn

RM Updated by Romain Mardulyn about 16 hours ago Actions #10

  • Target version changed from 4.15.0 to 4.16.0
Actions

Also available in: PDF Atom