fix: remove unused emoji stuff (#727)

This commit is contained in:
Vjacheslav Trushkin 2023-01-03 11:42:05 +02:00 committed by GitHub
parent 6e12402987
commit 6092b27da6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 25 deletions

View file

@ -39,12 +39,12 @@ if (import.meta.env.PROD)
// only cache pages and external assets on local build + start or in production
if (import.meta.env.PROD) {
// include emoji/twemoji icons
// include emoji icons
registerRoute(
({ sameOrigin, request, url }) =>
sameOrigin
&& request.destination === 'image'
&& url.pathname.startsWith('/emojis/twemoji/'),
&& url.pathname.startsWith('/emojis/'),
new StaleWhileRevalidate({
cacheName: 'elk-emojis',
plugins: [