QwikDev / qwik

Instant-loading web apps, without effort
https://qwik.dev
MIT License
20.85k stars 1.31k forks source link

fix: add .ico to isStaticPath to prevent large 404 responses #6860

Closed intellix closed 2 months ago

intellix commented 2 months ago

What is it?

Description

When viewing any file in Chrome I noticed that it always makes a request for favicon.ico and saw that it was a 255kb pretty 404 page. I think it makes sense to include .ico as a file to regard as static.

Screenshot 2024-09-04 at 16 05 23

Checklist:

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 5538e844b876cfc818d9f4a6e10db3d267aca6c5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages | Name | Type | | --------------------- | ----- | | @builder.io/qwik-city | Patch | | eslint-plugin-qwik | Patch | | @builder.io/qwik | Patch | | create-qwik | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

pkg-pr-new[bot] commented 2 months ago

Open in Stackblitz

npm i https://pkg.pr.new/@builder.io/qwik@6860
npm i https://pkg.pr.new/@builder.io/qwik-city@6860
npm i https://pkg.pr.new/eslint-plugin-qwik@6860
npm i https://pkg.pr.new/create-qwik@6860

commit: 0f8304d

intellix commented 2 months ago

Tried to use pnpm change, but no matter what I do it says no items selected etc

Screenshot 2024-09-04 at 15 14 18

Edit: ok I needed to press space to select them

github-actions[bot] commented 2 months ago
built with Refined Cloudflare Pages Action

âš¡ Cloudflare Pages Deployment

Name Status Preview Last Commit
qwik-docs ✅ Ready (View Log) Visit Preview 0f8304df3c2cf415d9381fee702286c960b287b8
shairez commented 2 months ago

Thanks @intellix

Here's a tutorial I recorded about changesets - https://go.screenpal.com/watch/cZivIcVPJQV

hope it'll make things easier

intellix commented 2 months ago

cheers, I've fixed it. Originally I couldn't figure out how to use it cause I didn't know you had to press space bar until watching your video before. I guess I just pressed space on the next one without realising it was talking about major/minor

wmertens commented 2 months ago

@intellix you still marked it minor instead of patch. Anyway I edited it, no problem, just remember for next time.