mirror of https://git.kore.io/kore.git
set tstamp to 0 in the correct location
This commit is contained in:
parent
0dda6f996f
commit
7a2e855d28
|
@ -51,6 +51,7 @@ serve_style_css(struct http_request *req)
|
||||||
char *date;
|
char *date;
|
||||||
time_t tstamp;
|
time_t tstamp;
|
||||||
|
|
||||||
|
tstamp = 0;
|
||||||
if (http_request_header_get(req, "if-modified-since", &date)) {
|
if (http_request_header_get(req, "if-modified-since", &date)) {
|
||||||
tstamp = kore_date_to_time(date);
|
tstamp = kore_date_to_time(date);
|
||||||
free(date);
|
free(date);
|
||||||
|
@ -58,7 +59,6 @@ serve_style_css(struct http_request *req)
|
||||||
kore_debug("header was present with %ld", tstamp);
|
kore_debug("header was present with %ld", tstamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
tstamp = 0;
|
|
||||||
if (tstamp != 0 && tstamp <= static_mtime_css_style) {
|
if (tstamp != 0 && tstamp <= static_mtime_css_style) {
|
||||||
ret = http_response(req, 304, NULL, 0);
|
ret = http_response(req, 304, NULL, 0);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue