Drupal 8 page has a day specific element which is valid for current day. I would like to add a cache tag so that it can be purged in varnish/fastly periodically. Is there a way to invalidate cache tag periodically on Drupal8?
Here is few FAQs/As:
- Why can't use max-age?
max-age can be used, but it's page level header which can get quite confusing when more than one component try to set it. Cache tag is kind of self-contained to the component.
- Why don't run cron?
Trying to avoid explicit cron/job to do this as it's environment specific.