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:
@@ -23,9 +23,6 @@ import (
|
||||
// DELETE /api/v1/sessions/:id
|
||||
func DeleteSession(router *gin.RouterGroup) {
|
||||
deleteSessionHandler := 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