projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
49378bd
)
Only fight IE broken caching for folders and progress updates. Files already have...
author
pastith
<devnull@localhost>
Thu, 12 Mar 2009 16:02:13 +0000
(16:02 +0000)
committer
pastith
<devnull@localhost>
Thu, 12 Mar 2009 16:02:13 +0000
(16:02 +0000)
gss/src/gr/ebs/gss/server/rest/FilesHandler.java
patch
|
blob
|
history
diff --git
a/gss/src/gr/ebs/gss/server/rest/FilesHandler.java
b/gss/src/gr/ebs/gss/server/rest/FilesHandler.java
index
de30b61
..
b20683d
100644
(file)
--- a/
gss/src/gr/ebs/gss/server/rest/FilesHandler.java
+++ b/
gss/src/gr/ebs/gss/server/rest/FilesHandler.java
@@
-267,7
+267,8
@@
public class FilesHandler extends RequestHandler {
}
// Workaround for IE's broken caching behavior.
}
// Workaround for IE's broken caching behavior.
- resp.setHeader("Expires", "-1");
+ if (folder != null)
+ resp.setHeader("Expires", "-1");
// A request for upload progress.
if (progress != null && content) {
// A request for upload progress.
if (progress != null && content) {
@@
-523,6
+524,9
@@
public class FilesHandler extends RequestHandler {
json.put("bytesUploaded", status.getBytesUploaded()).
put("bytesTotal", status.getFileSize());
sendJson(req, resp, json.toString());
json.put("bytesUploaded", status.getBytesUploaded()).
put("bytesTotal", status.getFileSize());
sendJson(req, resp, json.toString());
+
+ // Workaround for IE's broken caching behavior.
+ resp.setHeader("Expires", "-1");
return;
} catch (RpcException e) {
resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
return;
} catch (RpcException e) {
resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);