Commit 8565a852de252274c19bc7fe8864b61b9272f62d
1 parent
ec234d35
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
classesphp/mapa_openlayers.php
@@ -271,6 +271,7 @@ else{ | @@ -271,6 +271,7 @@ else{ | ||
271 | } | 271 | } |
272 | header('Content-Length: '.filesize($nomer)); | 272 | header('Content-Length: '.filesize($nomer)); |
273 | header('Content-Type: image/png'); | 273 | header('Content-Type: image/png'); |
274 | + header('Cache-Control: max-age=3600, must-revalidate'); | ||
274 | fpassthru(fopen($nomer, 'rb')); | 275 | fpassthru(fopen($nomer, 'rb')); |
275 | exit; | 276 | exit; |
276 | } | 277 | } |
@@ -329,6 +330,7 @@ function carregaCacheImagem($cachedir,$bbox,$layer,$map,$w,$h){ | @@ -329,6 +330,7 @@ function carregaCacheImagem($cachedir,$bbox,$layer,$map,$w,$h){ | ||
329 | */ | 330 | */ |
330 | header('Content-Length: '.filesize($nome)); | 331 | header('Content-Length: '.filesize($nome)); |
331 | header('Content-Type: image/png'); | 332 | header('Content-Type: image/png'); |
333 | + header('Cache-Control: max-age=3600, must-revalidate'); | ||
332 | fpassthru(fopen($nome, 'rb')); | 334 | fpassthru(fopen($nome, 'rb')); |
333 | exit; | 335 | exit; |
334 | } | 336 | } |