Compare commits

...
4 Commits
5 changed files with 40 additions and 8 deletions
+1 -4
View File
@@ -26,7 +26,4 @@ dist-ssr
# Coverage reports
coverage/
*.lcov
# will be deleted later
new-changes-to-port
pymupdf-wasm
serve_test
+3
View File
@@ -577,5 +577,8 @@ BentoPDF wouldn't be possible without the amazing open-source tools and librarie
- **[Tailwind CSS](https://tailwindcss.com/)** – For rapid, flexible, and beautiful UI styling.
- **[qpdf](https://github.com/qpdf/qpdf)** and **[qpdf-wasm](https://github.com/neslinesli93/qpdf-wasm)**– A powerful command-line tool and library for inspecting, repairing, and transforming PDF file ported to wasm
- **[cpdf](https://www.coherentpdf.com/)** – For content preserving pdf operations.
- **[LibreOffice](https://www.libreoffice.org/)** – For powerful document conversion capabilities.
- **[PyMuPDF](https://github.com/pymupdf/PyMuPDF)** – For high-performance PDF manipulation and data extraction.
- **[Ghostscript(GhostPDL)](https://github.com/ArtifexSoftware/ghostpdl)** – Needs no Introduction.
Your work inspires and empowers developers everywhere. Thank you for making open-source amazing!
+27 -3
View File
@@ -8,11 +8,9 @@ http {
include /etc/nginx/mime.types;
types {
application/javascript mjs;
application/wasm wasm;
}
default_type application/octet-stream;
brotli_static on;
gzip_static on;
gzip on;
@@ -33,18 +31,42 @@ http {
location ~* \.html$ {
expires 1h;
add_header Cache-Control "public, must-revalidate";
add_header Cross-Origin-Embedder-Policy "require-corp" always;
add_header Cross-Origin-Opener-Policy "same-origin" always;
}
location ~* /libreoffice-wasm/soffice\.wasm\.gz$ {
gzip off;
types {} default_type application/wasm;
add_header Content-Encoding gzip;
add_header Vary "Accept-Encoding";
add_header Cache-Control "public, immutable";
add_header Cross-Origin-Embedder-Policy "require-corp" always;
add_header Cross-Origin-Opener-Policy "same-origin" always;
}
location ~* /libreoffice-wasm/soffice\.data\.gz$ {
gzip off;
types {} default_type application/octet-stream;
add_header Content-Encoding gzip;
add_header Vary "Accept-Encoding";
add_header Cache-Control "public, immutable";
add_header Cross-Origin-Embedder-Policy "require-corp" always;
add_header Cross-Origin-Opener-Policy "same-origin" always;
}
location ~* \.(wasm|wasm\.gz|data|data\.gz)$ {
expires 1y;
add_header Cache-Control "public, immutable";
add_header Cross-Origin-Embedder-Policy "credentialless" always;
add_header Cross-Origin-Embedder-Policy "require-corp" always;
add_header Cross-Origin-Opener-Policy "same-origin" always;
}
location ~* \.(js|mjs|css|woff|woff2|ttf|eot|otf)$ {
expires 1y;
add_header Cache-Control "public, immutable";
add_header Cross-Origin-Embedder-Policy "require-corp" always;
add_header Cross-Origin-Opener-Policy "same-origin" always;
}
location ~* \.(png|jpg|jpeg|gif|ico|svg|webp|avif|mp4|webm)$ {
@@ -66,6 +88,8 @@ http {
try_files $uri $uri/ $uri.html /index.html;
expires 5m;
add_header Cache-Control "public, must-revalidate";
add_header Cross-Origin-Embedder-Policy "require-corp" always;
add_header Cross-Origin-Opener-Policy "same-origin" always;
}
add_header X-Frame-Options "SAMEORIGIN" always;
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "bento-pdf",
"private": true,
"version": "1.14.0",
"version": "1.15.1",
"license": "Apache-2.0",
"type": "module",
"scripts": {
+8
View File
@@ -167,6 +167,14 @@
"created_at": "2025-12-27T00:51:13Z",
"repoId": 1074785178,
"pullRequestNo": 312
},
{
"name": "matteo-genovese",
"id": 67902487,
"comment_id": 3694053964,
"created_at": "2025-12-27T15:47:09Z",
"repoId": 1074785178,
"pullRequestNo": 315
}
]
}