The workaround for the js script is still required.

This commit is contained in:
Andrea Dell'Amico 2021-07-07 16:30:02 +02:00
parent 4630178bbe
commit 7755ab7dcd
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 6 additions and 6 deletions

View File

@ -115,9 +115,9 @@ server {
{% endif %}
# See https://www.redmine.org/projects/redmine/wiki/BrowserCaching
# The old workaround is not required anymore at least since redmine 4.2
#location ~* /(javascripts|stylesheets)/.+(css|js|jpg|gif|ico|png)(\?[0-9]+)?$ {
location ~* \.(ico|css|js|gif|jp?g|png)(\?[0-9]+)?$ {
#
location ~* /(javascripts|stylesheets)/.+(css|js|jpg|gif|ico|png)(\?[0-9]+)?$ {
#location ~* \.(ico|css|js|gif|jp?g|png)(\?[0-9]+)?$ {
# add_header X-SV-test 304-killer; use this do-nothing HTTP Header, if you need to play with the regexp
#- for testing without fear of breaking anything!
expires {{ redmine_nginx_static_data_valid_time }};
@ -288,9 +288,9 @@ server {
{% endif %}
# See https://www.redmine.org/projects/redmine/wiki/BrowserCaching
# The old workaround is not required anymore at least since redmine 4.2
#location ~* /(javascripts|stylesheets)/.+(css|js|jpg|gif|ico|png)(\?[0-9]+)?$ {
location ~* \.(ico|css|js|gif|jp?g|png)(\?[0-9]+)?$ {
#
location ~* /(javascripts|stylesheets)/.+(css|js|jpg|gif|ico|png)(\?[0-9]+)?$ {
#location ~* \.(ico|css|js|gif|jp?g|png)(\?[0-9]+)?$ {
# add_header X-SV-test 304-killer; use this do-nothing HTTP Header, if you need to play with the regexp
#- for testing without fear of breaking anything!
expires {{ redmine_nginx_static_data_valid_time }};