files endpoint does not expose HTTP cache validation headers, causing stale CDN cache
What happened?
When /files is cached behind a CDN or caching proxy, updated resource files can remain stale because the endpoint does not expose standard HTTP cache validation headers.
At the moment, /files appears to return 200 OK with basic response headers, but without ETag, Last-Modified, Cache-Control, or If-None-Match handling.
This makes cache revalidation unreliable and can require manual purging after file updates.
Expected result
/files should expose standard HTTP cache validation headers so caching proxies/CDNs can revalidate file changes correctly instead of continuing to serve stale content.
Reproduction steps
- Put the
/filesendpoint behind a caching proxy or CDN - Cache a file served from
/files - Update that file on the server
- Request it again through the proxy/CDN
Observed result: stale content may continue to be served unless the cache is manually purged.
Importancy
Unknown
Area(s)
FXServer
Specific version(s)
FXServer latest (tested on Windows/Linux)
Additional information
From the current code:
FilesHttpHandler.cppalready reads hash data throughResourceFilesComponent::GetFileHashPairs()/filesresponses currently writecontent-length,transfer-encoding, and200 OK- I could not find
ETag,Cache-Control, orIf-None-Matchhandling in this path
A minimal improvement would be to expose HTTP cache validation for /files, for example by reusing the existing hash information for an ETag and supporting conditional requests.
Is there anyone who can review this ?
I'm taking a look at this and currently working on a fix.