about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-01-12 22:25:59 +0300
committerAndrew Dolgov <fox@fakecake.org>2024-01-12 22:25:59 +0300
commitd31fcb72cc6f6b2d1d798a75ff62d06c4dcd0cb4 (patch)
treed89a5b287491f11ce1c39d44016bd8d2e52a456a
parent6664e3ec4c3feabbbb96cd5e9c0b618b7fb9cbfc (diff)
downloadthe-epube-d31fcb72cc6f6b2d1d798a75ff62d06c4dcd0cb4.tar.gz
the-epube-d31fcb72cc6f6b2d1d798a75ff62d06c4dcd0cb4.tar.xz
add basic cache bust for read.html
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 837a260..18832e7 100644
--- a/index.php
+++ b/index.php
@@ -257,7 +257,7 @@
 		$is_read = false;
 
 		if ($line["epub_id"]) {
-			$read_link = "read.html?" . http_build_query(["id" => $line["epub_id"], "rt" => $mode, "b" => $line["id"]]);
+			$read_link = "read.html?" . http_build_query(["id" => $line["epub_id"], "rt" => $mode, "b" => $line["id"], "ts" => time()]);
 
 			$lastread_sth = $ldb->prepare("SELECT lastread, total_pages FROM epube_books, epube_pagination
 				WHERE epube_pagination.bookid = epube_books.bookid AND