perf: implement proper LRU Cache and ETag optimizations

This commit is contained in:
ralksta
2026-03-27 11:11:23 +01:00
parent af7e2e9206
commit bf72a88d6c
9 changed files with 182 additions and 14 deletions

View File

@@ -33,11 +33,11 @@ export default function PasswordGate({ slug, title }: PasswordGateProps) {
if (res.ok) {
window.location.reload();
} else {
setError('Wrong password');
setError('Incorrect password. Please try again.');
setPassword('');
}
} catch {
setError('Something went wrong');
setError('Unable to verify password. Please try again later.');
} finally {
setLoading(false);
}