Octoserve: cache-control added to javascript and json response header

This commit is contained in:
mvoelkel 2016-06-30 18:47:27 +02:00
parent 681eb61e36
commit 6f08c7709a
1 changed files with 6 additions and 2 deletions

View File

@ -193,11 +193,15 @@ char httptxt[] =
"\r\n";
char httpjava[] =
"HTTP/1.0 200 OK\r\nConnection: close\r\nPragma: no-cache\r\n"
"HTTP/1.0 200 OK\r\nConnection: close\r\n"
"Pragma: no-cache\r\n"
"Cache-Control: no-cache\r\n"
"Content-Type: application/x-javascript\r\n\r\n";
char httpjson[] =
"HTTP/1.0 200 OK\r\nConnection: close\r\nPragma: no-cache\r\n"
"HTTP/1.0 200 OK\r\nConnection: close\r\n"
"Pragma: no-cache\r\n"
"Cache-Control: no-cache\r\n"
"Content-Type: application/json\r\n\r\n";
#define sendstr(_fd_,...) do { \