From 6f08c7709aa3e224d2722c52354ad99c259c3cd0 Mon Sep 17 00:00:00 2001 From: mvoelkel Date: Thu, 30 Jun 2016 18:47:27 +0200 Subject: [PATCH] Octoserve: cache-control added to javascript and json response header --- octoserve/http.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/octoserve/http.c b/octoserve/http.c index 40083e5..84fe7ae 100644 --- a/octoserve/http.c +++ b/octoserve/http.c @@ -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 { \