Add cache control headers.
This commit is contained in:
parent
b9dab56607
commit
e3c01be431
1 changed files with 3 additions and 0 deletions
|
@ -125,6 +125,9 @@ void HTTP::Parser::setCORSHeaders(){
|
|||
SetHeader("Access-Control-Allow-Headers", "*");
|
||||
SetHeader("Access-Control-Request-Method", "GET");
|
||||
SetHeader("Access-Control-Request-Headers", "*");
|
||||
SetHeader("Cache-Control", "no-cache, no-store, must-revalidate");
|
||||
SetHeader("Pragma", "no-cache");
|
||||
SetHeader("Expires", "0");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue