Skip to content

Commit

Permalink
chore(ssr): Minor changing CDN-Tag header value with deploy rand only
Browse files Browse the repository at this point in the history
Related to #335
  • Loading branch information
leomp12 committed Mar 15, 2024
1 parent 2b4bbb4 commit 1fdc6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ssr/src/lib/serve-storefront.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export default async (req: Request, res: Response) => {
}
if (headers && BUNNYNET_API_KEY && DEPLOY_RAND) {
// Tag for CDN cache purge
headers['CDN-Tag'] = `-d:${DEPLOY_RAND}-`;
headers['CDN-Tag'] = `[${DEPLOY_RAND}]`;
}
_writeHead.apply(res, [status, headers]);
};
Expand Down

0 comments on commit 1fdc6bc

Please sign in to comment.