3 namespace Drupal\{{ machine_name }}\PageCache;
5 use Drupal\Core\PageCache\RequestPolicyInterface;
6 use Symfony\Component\HttpFoundation\Request;
9 * A policy allowing to bypass cache for requests with 'no-cache' parameter.
11 * Example: https://example.com/node?no-cache.
13 class {{ class }} implements RequestPolicyInterface {
18 public function check(Request $request) {
19 if (!is_null($request->get('no-cache'))) {