httpd: set http cache-control to no-store
This commit is contained in:
@@ -276,6 +276,11 @@ u32 http_make_response_header(struct http_response_info *info, char *buff,
|
||||
p += snprintf(p, buff + size - p, "Content-Length: %d\r\n",
|
||||
info->content_length);
|
||||
|
||||
if (p >= buff + size)
|
||||
return size;
|
||||
|
||||
p += snprintf(p, buff + size - p, "Cache-Control: no-store\r\n");
|
||||
|
||||
if (p >= buff + size)
|
||||
return size;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user