Skip to content

Commit

Permalink
Merge pull request #3084 from greenbone/mergify/bp/gsa-21.04/pr-3082
Browse files Browse the repository at this point in the history
Avoid caching of the index.html page (backport #3082)
  • Loading branch information
bjoernricks authored Jul 23, 2021
2 parents 60536fc + d2d0da2 commit 924747e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* Changed default Content-Security-Policy (CSP) Header to
`default-src 'self'; script-src 'self'; style-src-elem 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' blob:;`
[#3068](https://github.com/greenbone/gsa/pull/3068)
* Avoid caching of the index.html file [#3082](https://github.com/greenbone/gsa/pull/3082)

### Deprecated
### Removed
Expand Down
2 changes: 1 addition & 1 deletion gsad/src/gsad_http_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ handle_index (http_connection_t *connection, const char *method,
cmd_response_data_t *response_data;

response_data = cmd_response_data_new ();
cmd_response_data_set_allow_caching (response_data, 1);
cmd_response_data_set_allow_caching (response_data, FALSE);

response =
file_content_response (connection, url, "index.html", response_data);
Expand Down

0 comments on commit 924747e

Please sign in to comment.