
| Current Path : /var/www/html/12park/web/modules/contrib/webform/src/Routing/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/12park/web/modules/contrib/webform/src/Routing/WebformUncacheableResponse.php |
<?php
namespace Drupal\webform\Routing;
use Symfony\Component\HttpFoundation\Response;
/**
* Provides an uncacheable response.
*/
class WebformUncacheableResponse extends Response {
/**
* {@inheritdoc}
*/
public function __construct($url, $status = 302, $headers = []) {
parent::__construct($url, $status, $headers);
$this->setPrivate();
$this->setMaxAge(0);
$this->setSharedMaxAge(0);
$this->headers->addCacheControlDirective('must-revalidate', TRUE);
$this->headers->addCacheControlDirective('no-store', TRUE);
}
}