Include cache_suffix tinymce parameter in project's static files #465
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to integrate Tinymce's cache_suffix parameter into Django-tinymce.
The problem:
In project deployments it is a common practice to cache static data for long period of time in both proxy (such as Nginx) and browser storage. When a new version of tinymce or django-tinymce is deployed browser cache cannot be cleared on Nginx request. Tinymce includes the cache_suffix setting to solve this problem by appending a url parameter as suffix, for example
?ver=6.8
in each file in order to force the browser to refetch the static files. When the setting is set inTINYMCE_DEFAULT_CONFIG
the suffix is not propagated in thecompressor
nor theinit_tinymce
static files.I believe it is useful feature to be included in this project. Dealing with broken forms is a headache after a new release.
If you have any questions or you would like to discuss it further, I will be happy to participate