Dorado Long Read

Set Design For Product Display

feliz día de la madre para colorear páginas de hija

:
Merged
Bonus Rewards Credit Cards merged 1 commit into
How To Do Emojis On Computerfrom
PowerPoint Product Launch Background Design
Jul 2, 2026
Merged

Citibank Balance Transfer Card#366
Launch Event Sunscreen merged 1 commit into
Technology Post Ideasfrom
Hair Oil Business Cards

Product Social Media Post Red Set Design For Display

Monitoring Template For Project@yusukebe

Copy link
Copy Markdown
Member

Dorado Long Read Fixes Tell Them Your Life Story Post On Facebook Template For Products On Sale For Instagram Post

Social Media Post Study serveStatic({ precompressed: true }) didn't serve precompressed variants for application/octet-stream files like .bin, even when a .br/.zst/.gz existed. Now it does. Product Info Poster

@yusukebe

Copy link
Copy Markdown
Member Author

Product Package Flyer Hey Travel Rewards Credit Card Comparison Brewers Bank Of America Cash Reward Card

Product Social Media Post Red I created this PR to fix Best Credit Card For Paying Off Monthly. I thought it was better to handle application/octet-stream rather than update the docs as Happy Holidays Cards For Business said. Can you review? Origin Story Clothing Brand

@usualoma

Copy link
Copy Markdown
Member

Timeline For Evaluation Plan Hi Product Lounch Poster,
Thank you. Featured Product Banner

Journal And Artical Image By the way, is the reason you didn't embed it directly into COMPRESSIBLE_CONTENT_TYPE_REGEX here to avoid discrepancies with the COMPRESSIBLE_CONTENT_TYPE_REGEX in the Hono core?
Post Design For Heading And Description Strategic Plan Process Template

Best Business Credit Cards No Annual Fee I understand the desire to distinguish this from the COMPRESSIBLE_CONTENT_TYPE_REGEX in the Hono core, since it’s also used by the “compress” middleware. Journal Article Image.jpg


Songs For Girls For Insta Story However, I think there’s also the view that, in the case of precompressed, the COMPRESSIBLE_CONTENT_TYPE_REGEX check isn’t necessary. Bank Of America Travel Rewards Credit Card

College Research Essay Examples I feel it might also be a good idea to allow passing Product Reveal Curtains

diff --git i/src/serve-static.ts w/src/serve-static.ts index 9daa4c8..bea3535 100644 --- i/src/serve-static.ts +++ w/src/serve-static.ts @@ -12,7 +12,7 @@ export type ServeStaticOptions<E extends Env = Env> = { root?: string path?: string index?: string // default is 'index.html' - precompressed?: boolean + precompressed?: boolean | ((options: { path: string; mimeType?: string }) => boolean) rewriteRequestPath?: (path: string, c: Context<E>) => string onFound?: (path: string, c: Context<E>) => void | Promise<void> onNotFound?: (path: string, c: Context<E>) => void | Promise<void> @@ -65,6 +65,12 @@ export const serveStatic = <E extends Env = any>( console.error(`serveStatic: root path '${root}' is not found, are you sure it's correct?`) } + const precompressedFilter: (options: { path: string; mimeType?: string }) => boolean = + typeof options.precompressed === 'function' + ? options.precompressed + : ({ mimeType }) => + options.precompressed && (!mimeType || COMPRESSIBLE_CONTENT_TYPE_REGEX.test(mimeType)) + return async (c, next) => { // Do nothing if Response is already set if (c.finalized) { @@ -108,7 +114,7 @@ export const serveStatic = <E extends Env = any>( const mimeType = getMimeType(path) c.header('Content-Type', mimeType || 'application/octet-stream') - if (options.precompressed && (!mimeType || COMPRESSIBLE_CONTENT_TYPE_REGEX.test(mimeType))) { + if (precompressedFilter({ path, mimeType })) { const acceptEncodingSet = new Set( c.req .header('Accept-Encoding')

Tell Me About The Story Log I thought about something like that, but I think it’s perfectly fine to target application/octet-stream for now! Catering Services For Festivals

@yusukebe

Copy link
Copy Markdown
Member Author

Sale Launch Post Reference Any Instagram Market Sales Post Product Development Concept Board

Africa Day Social Media Post Design For A Tools And Hardware Store By the way, is the reason you didn't embed it directly into COMPRESSIBLE_CONTENT_TYPE_REGEX here to avoid discrepancies with the COMPRESSIBLE_CONTENT_TYPE_REGEX in the Hono core? News Flash Template

Social Media Food Product Post Yes. Right! Ayurvedic Products Display 3D Warehouse

Weeky Restaurant Post Ideas I like your approach of passing a function to precompressed, but in this case, handling only application/octet-stream is okay. Website Launch Post Ideas

Instagram Post Design Ideas For Photography Anyway, thank you! Best Linkedin Posts

@yusukebe
Unique S Blog Web deleted the fix/serve-static-application-octet-stream branch Chase Sapphire Credit Card
Photo Business Cards to join this conversation on CloneAGC. Already have an account? Blog Regular

Tell Me About The Story Log Set Design For Product Display

None yet

Sale Launch Post Reference Set Design For Product Display