mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
add: no-cache no-store
This commit is contained in:
@@ -141,6 +141,7 @@ void Response::generateHeader(void)
|
|||||||
if (_request.getConnection() == "keep-alive")
|
if (_request.getConnection() == "keep-alive")
|
||||||
ss << "Keep-Alive: timeout=" << _request.getLifeTime() << "\r\n";
|
ss << "Keep-Alive: timeout=" << _request.getLifeTime() << "\r\n";
|
||||||
ss << "Date: " << getTime() << "\r\n";
|
ss << "Date: " << getTime() << "\r\n";
|
||||||
|
ss << "Cache-Control: no-store, no-cache, must-revalidate\r\n";
|
||||||
ss << "\r\n";
|
ss << "\r\n";
|
||||||
_header = ss.str();
|
_header = ss.str();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user