Skip to content

Remove the STATIC_EXPIRES option. #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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.
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