How to only include (or !exclude) specific paths from caching?

Created on 2 March 2023, almost 2 years ago
Updated 13 September 2023, over 1 year ago

Problem/Motivation

Background: The PWA-part of our website is placed behind /app/* URL.

All other website contents should NOT be PWA-enabled.

So in Drupal 7 we were able to use the following in "URLs to exclude":
!app/.*
Now in Drupal 8 the field description is:

Takes a regex, these URLs will use network-only, default config should be, admin/.* and user/reset/.*.

and I'm not sure if this is still working?

If yes, would it perhaps make sense to add the example to the field description?
If not, we should bring it back.

Can someone tell, if this still works? Based on the feedback I can then provide a MR to add the description or re-implement the feature.

Thanks!

Steps to reproduce

Proposed resolution

Instead of using regex, we should instead require the https://github.com/sindresorhus/globby js library and use that to include / exclude paths with a ".gitignore" like syntax.

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024