Skip to content

Commit f506a90

Browse files
authored
Update index.js
1 parent f3be0c5 commit f506a90

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

addon/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4445,8 +4445,8 @@ addon.get("/poster/:type/:id", async function (req, res) {
44454445
});
44464446
res.setHeader('Content-Type', 'image/jpeg');
44474447
res.setHeader('Cache-Control', 'public, max-age=86400, stale-while-revalidate=604800'); // Cache for 1 day
4448-
res.setHeader('X-Cache-Status', imageResponse.headers['X-Cache-Status']); // Passing through NGINX cache headers
4449-
res.setHeader('X-Cache-Response-Time', imageResponse.headers['X-Cache-Response-Time']); // Passing through NGINX cache headers
4448+
res.setHeader('X-Cache-Status', imageResponse.headers['x-cache-status']); // Passing through NGINX cache headers
4449+
res.setHeader('X-Cache-Response-Time', imageResponse.headers['x-cache-response-time']); // Passing through NGINX cache headers
44504450
imageResponse.data.pipe(res);
44514451
console.log("Success! Piped the image from local proxy provider directly to the user.");
44524452
consola.success(`Delivered poster for ${id} via proxy: `, proxyPosterUrl);

0 commit comments

Comments
 (0)