Compare commits

..

No commits in common. "1025f3b523a148ea593fe9bcd178d2f812dd0825" and "c666415b80b2afaed2f4f3d0309389ff177400d6" have entirely different histories.

View file

@ -737,9 +737,8 @@ function CheckpointMiddleware() {
} }
} }
// Only checkpoint requests explicitly accepting 'text/html' // Skip checkpoint for requests that don't accept HTML
const acceptHeader = request.headers.get('accept') || ''; if (!req.accepts('html')) {
if (!acceptHeader.toLowerCase().includes('text/html')) {
return next(); return next();
} }