Bjön Limell

Results 16 comments of Bjön Limell

@steren Added a PR for this https://github.com/GoogleCloudPlatform/stackdriver-errors-js/pull/106

@Rich-Harris Maybe `version.json` should be moved out of `appDir`? Now it gets cached in every CDN and browser, `public,max-age=31536000,immutable`.

I just saw that you're requesting the file with `pragma: 'no-cache'` and `'cache-control': 'no-cache'`. If that's 100% safe everything is fine.

Any update on this? I have to patch drizzle (0.26.0) for every version now. This is what I have to patch to compile with tsc (postgres). ```patch diff --git a/db.d-bc9a1d6c.d.ts...

With the new "Relational queries", I have to export more types. ```json "pnpm": { "patchedDependencies": { "[email protected]": "patches/[email protected]" } } ``` ```patch diff --git a/db.d-bc9a1d6c.d.ts b/db.d-bc9a1d6c.d.ts index 2fa88f9a50a2530c82ba1f55ceb6302d691c4d46..4e66ee8bc590ed92686e1e3203d000f4da03ea2d 100644 ---...

For us its the `rewriter.transform(res)` that triggers the decompression error.

@dummdidumm Google's dynamic compression (CDN) requires the response to have `content-length`. Without it, no compression is done. https://cloud.google.com/cdn/docs/dynamic-compression#response-not-compressed It's was no problem to add `content-length` in sveltekit manually. Maybe the...

Why don't not just run it before starting SvelteKit? Like `node db-migration.js && node [SvelteKit]`?

@Rich-Harris Shouldn't this return a cache-control string, instead of a max-age integer? That way we can control everything. _private, no-store_, etc.