允许缓存

This commit is contained in:
zogodo
2020-02-21 11:40:59 +08:00
parent eb055d43b9
commit 66f38c82ae
5 changed files with 237 additions and 236 deletions

View File

@@ -37,6 +37,7 @@
#define HTTP_CONTENT_CSS_ZIP "text/css\r\nContent-Encoding: gzip"
#define HTTPD_HDR_DEFORT (HTTPD_HDR_ADD_SERVER|HTTPD_HDR_ADD_CONN_CLOSE|HTTPD_HDR_ADD_PRAGMA_NO_CACHE)
#define HTTPD_HDR_CACHE (HTTPD_HDR_ADD_SERVER|HTTPD_HDR_ADD_CONN_CLOSE|HTTPD_HDR_ADD_CACHE_CTRL_NO_CHK)
#define send_http(DATA, LEN, LABEL, P_ERR) \
*(P_ERR) = httpd_send_all_header(req, HTTP_RES_200, LEN , HTTP_CONTENT_HTML_STR); \