Compare commits
No commits in common. "1025f3b523a148ea593fe9bcd178d2f812dd0825" and "c666415b80b2afaed2f4f3d0309389ff177400d6" have entirely different histories.
1025f3b523
...
c666415b80
1 changed files with 2 additions and 3 deletions
|
|
@ -737,9 +737,8 @@ function CheckpointMiddleware() {
|
|||
}
|
||||
}
|
||||
|
||||
// Only checkpoint requests explicitly accepting 'text/html'
|
||||
const acceptHeader = request.headers.get('accept') || '';
|
||||
if (!acceptHeader.toLowerCase().includes('text/html')) {
|
||||
// Skip checkpoint for requests that don't accept HTML
|
||||
if (!req.accepts('html')) {
|
||||
return next();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue