Skip to content

Commit

Permalink
fix: add .ico to isStaticPath to prevent large 404 responses (#6860)
Browse files Browse the repository at this point in the history
  • Loading branch information
intellix authored Sep 9, 2024
1 parent 7b1bb03 commit 902b041
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/pink-ravens-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@builder.io/qwik-city': patch
---

added .ico to be detected by isStaticFile
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ export function isStaticPath(method: string, url: URL) {
* If (staticPaths.has(pWithoutQdata)) { return true; }
*/

return /\.(jpg|jpeg|png|webp|avif|gif|svg)$/.test(url.pathname);
return /\.(jpg|jpeg|png|webp|avif|gif|svg|ico)$/.test(url.pathname);
}

0 comments on commit 902b041

Please sign in to comment.