diff --git a/templates/nginx-redmine-virthost.j2 b/templates/nginx-redmine-virthost.j2 index 6a0c72d..13bb961 100644 --- a/templates/nginx-redmine-virthost.j2 +++ b/templates/nginx-redmine-virthost.j2 @@ -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 }};