Skip to content

Commit da73af0

Browse files
committed
Disable cachine for the Selection requests
Signed-off-by: David DeTomaso <davedeto@gmail.com>
1 parent 8bf9a47 commit da73af0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

R/Server.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,19 @@ launchServer <- function(object, port=NULL, host=NULL, browser=TRUE) {
568568

569569
}) %>%
570570
get("/Cells/Selections", function(req, res, err) {
571+
572+
# Disable caching for this request
573+
res$set_header("Cache-Control", NULL)
574+
571575
selectionNames <- as.character(names(object@selections))
572576
out <- toJSON(selectionNames)
573577
return(out)
574578
}) %>%
575579
get("/Cells/Selections/(?<selection_id1>.*)", function(req, res, err) {
580+
581+
# Disable caching for this request
582+
res$set_header("Cache-Control", NULL)
583+
576584
selection_id <- URLdecode(req$params$selection_id1)
577585
selectionCells <- object@selections[[selection_id]]
578586
out <- toJSON(selectionCells, auto_unbox = TRUE)

0 commit comments

Comments
 (0)