mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +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
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…
Add table
Add a link
Reference in a new issue