Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/04/2015, 14:27
Avatar de Profesor_Falken
Profesor_Falken
 
Fecha de Ingreso: agosto-2014
Ubicación: Mountain View
Mensajes: 1.323
Antigüedad: 9 años, 9 meses
Puntos: 182
Respuesta: cache del navegador, problema de descarga

Buenas,

Prueba a establecer la cabecera http adecuada para evitar que cachee.

Por ejemplo:

byte [] outArray = outByteStream.toByteArray();
response.setContentType("application/ms-excel");
response.setContentLength(outArray.length);
response.setHeader("Expires:", "0");
response.setHeader("Content-Disposition", "attachment; filename=testxls.xls");
OutputStream outStream = response.getOutputStream();
outStream.write(outArray);
outStream.flush();


Un saludo
__________________
If to err is human, then programmers are the most human of us