springuser2014 / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Prevent caching of wro api requests #144

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Wro API requests used to reload cache and model through HTTP GET requests 
(/wro/wroAPI/reloadModel && /wro/wroAPI/reloadCache) contains future expire 
headers. This prevents invoking serverside reload method. 

What is the expected output? What do you see instead?
Wro API request should prevent caching by adding the following headers:
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);

Original issue reported on code.google.com by alex.obj...@gmail.com on 7 Nov 2010 at 9:04

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 7 Nov 2010 at 9:15