- Issue created by @Grimreaper
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.
Active
1.0
Code