Skip to content

Commit ec87f3b

Browse files
IBX-5505: Fixed preview response to have private Cache-Control headers
For more details see https://issues.ibexa.co/browse/IBX-5505 and #369
1 parent 1138d50 commit ec87f3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

eZ/Publish/Core/MVC/Symfony/Controller/Content/PreviewController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ public function previewContentAction(
130130
throw $e;
131131
}
132132
}
133-
$response->headers->remove('cache-control');
134-
$response->headers->remove('expires');
133+
$response->setPrivate();
135134

136135
$this->previewHelper->restoreConfigScope();
137136
$this->previewHelper->setPreviewActive(false);

0 commit comments

Comments
 (0)