Skip to content

Read cached files as text unless type is "buffer"#91

Open
vrugtehagel wants to merge 1 commit into
11ty:mainfrom
vrugtehagel:main
Open

Read cached files as text unless type is "buffer"#91
vrugtehagel wants to merge 1 commit into
11ty:mainfrom
vrugtehagel:main

Conversation

@vrugtehagel

@vrugtehagel vrugtehagel commented Jun 11, 2026

Copy link
Copy Markdown

This PR resolves #90.

Previously, the cached file was read as text by default, unless type was explicitly set to "buffer". This was changed in 442070d.

JSON and parsed XML fetches flew under the radar here only because JSON.parse() converts its argument to a string implicily, which in the case of a buffer, happens to result in the desired behavior.

@vrugtehagel vrugtehagel changed the title Read files as text unless type is "buffer" Read cached files as text unless type is "buffer" Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Cached text payloads are returned as buffers

1 participant