Editoria11y cache tags are too long for Akamai on pages with long paths

Created on 4 September 2024, 15 days ago
Updated 18 September 2024, 1 day ago

Problem/Motivation

Akamai does not support cache tags longer than 128 characters. https://techdocs.akamai.com/purge-cache/docs/assign-cache-tags#syntax-re...

Unfortunately, editoria11y appends a 1000 character substring of a page's path when creating cache tags. For a long path, this creates invalid cache tags that prevent Akamai from working.

Steps to reproduce

Have this module + Akamai installed and configured in an environment with purging configured for cache tags and create a page with editoria11y enabled that has a path of more than 128 characters. Try to run a drush command.

[error] httpStatus: 400
detail: Invalid or malformed cache tag 'editoria11y_dismissals_prioritiesinnovationcentervaluebasedcarespotlightpatientprovidervoicesflexibilitybestmeetpatientneedsconnorsstory': exceeds maximum cache tag length (128 bytes)
title: bad tag
describedBy: https://developer.akamai.com/api/core_features/fast_purge/v3.html#httpcodes

Proposed resolution

Reduce the size of the cache tags by hashing and then converting to base64.

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Bugs

Created by

πŸ‡ΊπŸ‡ΈUnited States jastraat

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

Comments & Activities

Production build 0.71.5 2024