Skip to content
Myr

refactor(middleware/serve-static): call getContent only once if the file does not exist (#2922)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Taku Amano · committed by GitHub · parent 00f32b7 · Browse files · 2 files+18 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+18 added−9 removed

  • tests:+12 added−6 removed
  • other:+6 added−3 removed

2 files+18 added−9 removed

modified:src/middleware/serve-static/index.test.ts+12 added-6 removed
modified:src/middleware/serve-static/index.ts+6 added-3 removed