mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-06 03:56:56 +00:00
reduce caching for failed previews
This commit is contained in:
parent
c23b1c3be7
commit
a1fcf554fa
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue