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 | 271 | } |
272 | 272 | header('Content-Length: '.filesize($nomer)); |
273 | 273 | header('Content-Type: image/png'); |
274 | + header('Cache-Control: max-age=3600, must-revalidate'); | |
274 | 275 | fpassthru(fopen($nomer, 'rb')); |
275 | 276 | exit; |
276 | 277 | } |
... | ... | @@ -329,6 +330,7 @@ function carregaCacheImagem($cachedir,$bbox,$layer,$map,$w,$h){ |
329 | 330 | */ |
330 | 331 | header('Content-Length: '.filesize($nome)); |
331 | 332 | header('Content-Type: image/png'); |
333 | + header('Cache-Control: max-age=3600, must-revalidate'); | |
332 | 334 | fpassthru(fopen($nome, 'rb')); |
333 | 335 | exit; |
334 | 336 | } | ... | ... |