reduce caching for failed previews

This commit is contained in:
Hazelnoot 2025-05-05 09:35:13 -04:00
parent c23b1c3be7
commit a1fcf554fa

View file

@ -182,7 +182,7 @@ export class UrlPreviewService {
this.logger.warn(`Failed to get preview of ${url} for ${lang}: ${err}`);
reply.code(422);
reply.header('Cache-Control', 'max-age=86400, immutable');
reply.header('Cache-Control', 'max-age=3600');
return {
error: new ApiError({
message: 'Failed to get preview',