Ver Mensaje Individual
  #4 (permalink)  
Antiguo 02/08/2012, 04:27
Avatar de dontexplain
dontexplain
 
Fecha de Ingreso: junio-2012
Mensajes: 536
Antigüedad: 11 años, 10 meses
Puntos: 127
Respuesta: Actualizar el caché mediante PHP

PUedes usar la alternativa de Eleazan o simplemente

.htaccess

RewriteEngine On
RewriteRule ^sin-cache/(.*?)$ sincache.php?archivo=$1

sincache.php

header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 1 Jul 1991 05:00:00 GMT");
readfile($_GET['archivo']);

sin-cache/script.js
sin-cache/estilo.css

Un saludo.
__________________
21añero.
HTML/CSS, PHP, JS/jQuery, Mysql; NodeJS/Socket.io (& V8); C++ ; Python (wxpy); Ensamblador.
Músico (clarinetista/pianista) y compositor