mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
WebServer: Set no-cache header for responses
This sets the Pragma: no-cache header. Using Cache-Control would be preferable but that's not part of the HTTP/1.0 standard.
This commit is contained in:
parent
7aca2d181a
commit
8c96640157
Notes:
sideshowbarker
2024-07-18 17:55:28 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/8c966401575 Pull-request: https://github.com/SerenityOS/serenity/pull/7218 Issue: https://github.com/SerenityOS/serenity/issues/7064
1 changed files with 1 additions and 0 deletions
|
@ -123,6 +123,7 @@ void Client::send_response(InputStream& response, const HTTP::HttpRequest& reque
|
|||
builder.append("Server: WebServer (SerenityOS)\r\n");
|
||||
builder.append("X-Frame-Options: SAMEORIGIN\r\n");
|
||||
builder.append("X-Content-Type-Options: nosniff\r\n");
|
||||
builder.append("Pragma: no-cache\r\n");
|
||||
builder.append("Content-Type: ");
|
||||
builder.append(content_type);
|
||||
builder.append("\r\n");
|
||||
|
|
Loading…
Reference in a new issue