Skip to content

Commit

Permalink
fix: add video, audio, and archive to static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Feb 24, 2025
1 parent ee0548e commit f130811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/isAssetRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function isAssetRequest(request: Request): boolean {
}

// Ignore common static assets.
return /\.(css|m?js|m?ts|html|ttf|otf|woff|woff2|gif|jpe?g|png|avif|webp|svg)$/i.test(
return /\.(s?css|less|m?js|m?ts|html|ttf|otf|woff|woff2|eot|gif|jpe?g|png|avif|webp|svg|mp4|webm|ogg|mov|mp3|wav|ogg|flac|aac|pdf|txt|csv|json|xml|md|zip|tar|gz|rar|7z)$/i.test(
url.pathname,
)
}

0 comments on commit f130811

Please sign in to comment.