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.

Issue fork rift_cq-3535007

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

grimreaper created an issue. See original summary.

christian.wiedemann made their first commit to this issue’s fork.

christian.wiedemann’s picture

Status: Active » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.