Skip to main content

New answers tagged

3 votes
Accepted

How can I add cache information to InboundPathProcessor?

In a path processor you can't set data in the request object, the request object is not preserved. The only exception are query parameters which are extracted from the request object when the ...
4uk4's user avatar
  • 101k
1 vote
Accepted

How to properly set up caching in a preprocess function for a block variation by node type?

The caching related code already present is for bubbling up the cache dependencies of the block content entity, as a precaution in case the template doesn't render the entire {{ content }} variable. ...
4uk4's user avatar
  • 101k
0 votes

How do I enable the ETag header?

Create a new module (etag) Add etag.services.yml services: etag.response_subscriber: class: Drupal\etag\EventSubscriber\ResponseSubscriber tags: - { name: ...
bdereta's user avatar
  • 141

Top 50 recent answers are included