@dnax/core 0.16.9 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app/hono.ts +2 -1
  2. package/package.json +1 -1
package/app/hono.ts CHANGED
@@ -548,11 +548,12 @@ function HonoInstance(): typeof app {
548
548
  .resize(width, height, {
549
549
  fit: crop || "contain",
550
550
  })
551
- .png({ quality })
551
+ .jpeg({ quality })
552
552
  .toBuffer();
553
553
 
554
554
  // Retourner l'image redimensionnée
555
555
  return c.body(buffer, 200, {
556
+ "Cache-Control": "public, max-age=31536000, immutable",
556
557
  "Content-Type": "image/jpeg",
557
558
  });
558
559
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.16.9",
3
+ "version": "0.17.1",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {