Skip to content

Commit

Permalink
chore: add temporal debug header
Browse files Browse the repository at this point in the history
  • Loading branch information
esroyo committed Feb 22, 2024
1 parent 9ff661e commit a822aab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ export const createFastPathResponse = async (
performance.measure('redirect-cache-miss', { start: performance.now() });

const rebuildedHeaders = cloneHeaders(response.headers);

rebuildedHeaders.set('x-debug-redirect-cache-miss', JSON.stringify({ redirectLocation, buildTarget }));

performance.clearMeasures('total');
performance.measure('total', 'total');
Expand Down

0 comments on commit a822aab

Please sign in to comment.