Skip to content

Commit 86622d4

Browse files
committed
Update queue-manager.go
1 parent e12f0cb commit 86622d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

queue-manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,9 @@ func (qm *QueueManager) serveQueuePage(rw http.ResponseWriter, req *http.Request
408408
data := qm.prepareQueuePageData(position)
409409

410410
// Set cache control headers to prevent caching
411-
rw.Header().Set("Cache-Control", "no-store, no-cache, must-revalidate, max-age=0")
411+
rw.Header().Set("Cache-Control", "no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0")
412412
rw.Header().Set("Pragma", "no-cache")
413-
rw.Header().Set("Expires", "0")
413+
rw.Header().Set("Expires", "Thu, 01 Jan 1970 00:00:00 GMT")
414414

415415
// Try to use the template file
416416
if qm.serveCustomTemplate(rw, data) {

0 commit comments

Comments
 (0)