mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -19,9 +19,6 @@ import (
|
||||
// GET /api/v1/sessions/:id
|
||||
func GetSession(router *gin.RouterGroup) {
|
||||
getSessionHandler := func(c *gin.Context) {
|
||||
// Disable caching of responses.
|
||||
c.Header(header.CacheControl, header.CacheControlNoStore)
|
||||
|
||||
// Prevent CDNs from caching this endpoint.
|
||||
if header.IsCdn(c.Request) {
|
||||
AbortNotFound(c)
|
||||
|
||||
Reference in New Issue
Block a user