How to debug page caching? I've got a page which returns X-Drupal-Dynamic-Cache: UNCACHEABLE, I've got a suspicion that this is related to a view that is embedded in the page. Though, this made me wonder; is there any way to see what invalidated actually the page cache?
The X-Drupal-Cache-Tags header should help with this.  Here's how to enable it from this doc:


  You can debug cacheable responses (responses that implement this
  interface, which may be cached by Page Cache or Dynamic Page Cache) by
  setting the http.response.debug_cacheability_headers container
  parameter to true, in your services.yml. Followed by a container
  rebuild, which is necessary when changing a container parameter.
  
  That will cause Drupal to send X-Drupal-Cache-Tags and
  X-Drupal-Cache-Contexts headers.