Created on 9 July 2025, 5 days ago

Problem/Motivation

Hello,

In https://git.drupalcode.org/project/rift_cq/-/blob/1.0.x/src/Plugin/RiftB...

return [
      '#type' => 'inline_template',
      '#template' => '<div class="rift-cq-image-container"><style>{{ style }}</style><div class="rift-cq-image {{ class }}">{{ img }}</div></div>',
      '#context' => [
        'style' => $style,
        'class' => $class,
        'img' => $picture_element->getImg()->render(),
      ],
      '#attached' => [
        'library' => ['rift_cq/rift_cq'],
      ],
      '#cache' => ['max-age' => 0],
    ];

Why is there a max-age 0? I suppose it is preventing pages to be put in cache.

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France Grimreaper France 🇫🇷

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024