Resimler için cache oluşturuldu

This commit is contained in:
2025-12-03 20:49:08 +03:00
parent 0759be39b4
commit 8f8b5e37fc
3 changed files with 41 additions and 51 deletions

View File

@@ -335,13 +335,13 @@ async function loadMovies() {
function posterUrl(movie) {
if (!movie.poster) return null;
const token = localStorage.getItem("token");
return `${API}${movie.poster}?token=${token}&t=${Date.now()}`;
return `${API}${movie.poster}?token=${token}`;
}
function backdropUrl(movie) {
if (!movie.backdrop) return null;
const token = localStorage.getItem("token");
return `${API}${movie.backdrop}?token=${token}&t=${Date.now()}`;
return `${API}${movie.backdrop}?token=${token}`;
}
async function refreshMovies() {

View File

@@ -77,7 +77,7 @@ let filteredShows = [];
function assetUrl(pathname) {
if (!pathname) return null;
const token = localStorage.getItem("token");
return `${API}${pathname}?token=${token}&t=${Date.now()}`;
return `${API}${pathname}?token=${token}`;
}
function posterUrl(show) {