Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.14.0
-
None
Description
If you click an Action that returns a Blob (download), the client receives a HTTP response header with an entry Pragma: "cache".
If the Blob is dynamically changing with every request, the client will not see this changes. (As long as the request url stays the same.)
Expected behavior would be (at least for this code snippet) to produce a new result with each invocation.
@Action(semantics=SemanticsOf.NON_IDEMPOTENT) public Blob download() { return new Blob("blob", "application/json", ("{\"now\" : \""+new java.util.Date()+"\"}").getBytes()); }
But it does not!
Steps to reproduce:
Take the simple-app artifact 1.14 and add above snippet to the SimpleObjectMenu.
Consecutive calls of the download action will not be updated. Instead the client/browser provides cached data from an earlier request.