Skip to content

Conversation

drgrice1
Copy link
Member

The option is set up to set an expiration for static assets served from the webwork2_files route. However, there is no such route anymore for the renderer, and so the option currently does nothing. This could be adapted to work for the other files in public, but there is not point in that. The static assets used in production are either local assets that are minimized and served with a hash in the file name, or are third party assets and a version parameter is appended as a query parameter. As such, when files change the browser will get the new versions.

The option is set up to set an expiration for static assets served from
the `webwork2_files` route.  However, there is no such route anymore for
the renderer, and so the option currently does nothing.  This could be
adapted to work for the other files in public, but there is not point in
that.  The static assets used in production are either local assets that
are minimized and served with a hash in the file name, or are third
party assets and a version parameter is appended as a query parameter.
As such, when files change the browser will get the new versions.
@drgrice1 drgrice1 force-pushed the remove-static-expires branch from f303cdc to f3f56c2 Compare July 19, 2025 10:10
@somiaj somiaj merged commit c226dd1 into openwebwork:develop Aug 5, 2025
2 checks passed
@drgrice1 drgrice1 deleted the remove-static-expires branch August 5, 2025 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants