Liam
Explore posts from serversDeno equivalent for `npm create svelte@latest my-app`
Since
npm create
is an alias for npm init
I thought I'd just be able to use deno init svelte@latest my-app
as it claims to be a replacement here: https://youtu.be/d35SlRgVxT8?t=546.
What would the correct way to init a svelte app? I'd like to use a deno.json
if possible rather than package.json
.7 replies
CDCloudflare Developers
•Created by Liam on 1/3/2024 in #general-help
GZIPed responses from my origin are being decompressed with `Content-Type: application/octet-stream`
I am serving my responses from my origin compressed with gzip and
content-encoding: gzip
and content-type: application/octet-stream
headers. When I request from this server the response I get back is not gzipped even though the accept-encoding
header allows gzip. However if I set the content-type
header to something like application/wasm
then the response stays as gzip and is not decompressed. How can I keep a content type of application/octet-stream
while also not having my responses being decompressed?5 replies
CDCloudflare Developers
•Created by Liam on 12/31/2023 in #general-help
`Accept-Encoding` received by origin is not what was sent by the user
I'd like to handle the compression of my content myself as the files are relatively large (~20mb avg). I have setup deflate compression on my server which works great (compresses down to ~5mb) however I have no way of disabling it when the user doesn't support it as the
Accept-Encoding
header received on the server only has gzip listed even though I am sending the request with postman with Accept-Encoding: gzip, deflate, br
. Even when setting Accept-Encoding: deflate
the origin only receives gzip in the header. How can I make sure I am getting the same Accept-Encoding
header at my server that is being sent from the user? I just want cloudflare to act as a proxy to protect my server, I don't want any fancy compression stuff.4 replies