Skip to content

Fix: Website title settings are not working for “PWA” names#287

Open
llanc wants to merge 5 commits intomaillab:mainfrom
llanc:main
Open

Fix: Website title settings are not working for “PWA” names#287
llanc wants to merge 5 commits intomaillab:mainfrom
llanc:main

Conversation

@llanc
Copy link
Copy Markdown

@llanc llanc commented Mar 10, 2026

@eoao eoao force-pushed the main branch 4 times, most recently from 83cce4e to 6ce918e Compare March 21, 2026 15:27
Copy link
Copy Markdown

@SUJuemsko SUJuemsko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议两处性能优化

const contentType = assetResponse.headers.get('content-type') || '';
if (contentType.includes('text/html')) {
try {
const setting = await env.kv.get(KvConst.SETTING, { type: 'json' });
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Promise.all 一下

return assetResponse;
}
}
return env.assets.fetch(req);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return assetResponse;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants