Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 299794

Add "protocol" cache context to allow optimizing responses for HTTP/1 vs HTTP/2

$
0
0

Problem/Motivation

When a site is served via HTTP/2, it may make sense to disable CSS/JS asset aggregation. But we still want that to happen for HTTP/1 clients. We currently can't serve both.

Proposed resolution

Add a cache context that allows responses (or any computation, really) to vary by the protocol used.

This would allow modules like https://www.drupal.org/project/http2_server_push, https://www.drupal.org/project/advagg or https://www.drupal.org/project/jsonapi_push to behave smarter.

Remaining tasks

  1. Review
  2. RTBC
  3. Update docs at https://www.drupal.org/docs/8/api/cache-api/cache-contexts
  4. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.


Viewing all articles
Browse latest Browse all 299794

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>