fix: disable buildx cache + simplify compression middleware
This commit is contained in:
parent
2332aa9f1f
commit
c6af7cd864
2 changed files with 1 additions and 4 deletions
|
|
@ -31,6 +31,7 @@ jobs:
|
|||
with:
|
||||
context: .
|
||||
push: true
|
||||
no-cache: true
|
||||
tags: |
|
||||
git.cloonar.com/openclawd/docfast:latest
|
||||
git.cloonar.com/openclawd/docfast:${{ github.sha }}
|
||||
|
|
|
|||
|
|
@ -3,8 +3,4 @@ import compression from "compression";
|
|||
export const compressionMiddleware = compression({
|
||||
level: 6,
|
||||
threshold: 1024,
|
||||
filter: (req: any, res: any) => {
|
||||
if (req.headers["x-no-compression"]) return false;
|
||||
return compression.filter(req, res);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue