diff options
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend.php b/backend.php index 9ce0bfa..83977b7 100644 --- a/backend.php +++ b/backend.php @@ -33,6 +33,7 @@ $base_filename = basename($filename); header("Content-type: " . mime_content_type($filename)); + header('Cache-control: max-age= ' . (86400*24)); readfile($filename); } else { @@ -110,7 +111,7 @@ break; case "getlastread": $bookid = (int) $_REQUEST["id"]; - $lastread = -1; + $lastread = 0; if ($bookid) { @@ -156,7 +157,7 @@ db_query($link, "COMMIT"); } - print $page; + print json_encode(["lastread" => $page]); break; |