Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Per our discussion at DrupalCon Los Angeles, I'm porting this to Drupal 8.
Proposed resolution
Use the X-Drupal-Cache-Tags
header, map it to a Surrogate-Key
header.
Remaining tasks
For follow-up issues:
- Better API error handling (but it's better than the D7 module already).
Surrogate-Control
header (but it should probably just obey Drupal 8's Cache-Control headers, since this is contentious, I haven't added it yet)- Test coverage (was none in D7 either).
User interface changes
Removed:
- purging UI: pretty much completely pointless now, just use the Fastly.com UI
- registration UI (could be added again, but this is simpler, and it was implemented pretty poorly)
- service addition UI (could be added again, but this is simpler, and it was implemented pretty poorly)
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#2 | fastly-d8-2491561-2.patch | 41.1 KB | Wim Leers |
Comments
Comment #1
Wim LeersComment #2
Wim LeersAnd voila. I consider this done. The rest can be done in follow-up issues.
Comment #4
Fabianx CreditAttribution: Fabianx as a volunteer and at Tag1 Consulting commentedThis looks like a copy pasta error ...
Except the c&p error, this looks great to me :).
Comment #5
Leon Kessler CreditAttribution: Leon Kessler commentedI've created a 8.x-1.x and attached patch from #2
You may want to contact the module owner to get write permissions to the project, I don't think I can add you.
Would also love to help testing this out, although may take me a while to get a D8 environment with Fastly setup.
Comment #6
Wim Leers@leon.nk: Oh, wow, that must be the fastest commit ever! :D Thank you!
Contacted the project owner, asked him to make DocWilco (https://www.drupal.org/u/drwilco) the new owner.
Comment #7
moshe weitzman CreditAttribution: moshe weitzman at Acquia commentedWould be good to update the Project page since this module has changed a bit in 8.x
Comment #8
Wim LeersWe're now looking to port part of this to D8 core: #2542868: Allow a header value size limit to be specified.
Comment #11
balatin CreditAttribution: balatin as a volunteer commentedA new 8.x-3.0-alpha1 release has been created. Please add new bug fixes, security updates, and feature requests to the issue queue.