1
0
mirror of https://github.com/DigitalDevices/octonet.git synced 2023-10-10 13:36:52 +02:00

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

View File

@ -193,11 +193,15 @@ char httptxt[] =
"\r\n"; "\r\n";
char httpjava[] = 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"; "Content-Type: application/x-javascript\r\n\r\n";
char httpjson[] = 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"; "Content-Type: application/json\r\n\r\n";
#define sendstr(_fd_,...) do { \ #define sendstr(_fd_,...) do { \