Skip to content

Commit

Permalink
src: don't cache origin requests (#134)
Browse files Browse the repository at this point in the history
Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com>
  • Loading branch information
flakey5 authored Aug 28, 2024
1 parent 39f5e0e commit fd7ea50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { Router } from './router';

export function registerRoutes(router: Router): void {
const r2Middleware = cached(new R2Middleware());
const originMiddleware = cached(new OriginMiddleware());
const originMiddleware = new OriginMiddleware();

router.options('*', [new OptionsMiddleware()]);

Expand Down

0 comments on commit fd7ea50

Please sign in to comment.