Compare commits

...

2 commits

Author SHA1 Message Date
1025f3b523 Fix non-html stuff hitting Checkpoint 2025-05-29 16:55:40 -05:00
aa7da4611b Reapply "Fix non-html stuff hitting Checkpoint"
This reverts commit c666415b80.
2025-05-29 16:51:04 -05:00

View file

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