[
https://jira.jboss.org/browse/GTNPORTAL-1453?page=com.atlassian.jira.plug...
]
Vu Viet Phuong commented on GTNPORTAL-1453:
-------------------------------------------
I've tried to set response's header "Cache-Control" to
"no-cache" but when the response's data is written to output stream, our
RestService framework reset it, in the HttpResponse, we'll loose the header
"Cache-Control". And i've found another way to fix this issue : In ajax
call request, we add the HttpHeader : "If-Modified-Since" with value "Thu,
1 Jan 1970 00:00:00 GMT", and it works, IE doesn't use cache anymore
IE : Ajax calls to Rest methods exposed by @Manage are always cached
--------------------------------------------------------------------
Key: GTNPORTAL-1453
URL:
https://jira.jboss.org/browse/GTNPORTAL-1453
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Vu Viet Phuong
Assignee: Vu Viet Phuong
We can use @Manage annotation to expose gatein service's methods to RestService
Ajax calls to it from Firefox, Safari work well. But with IE, ajax calls always are
cached
Actually, we also use @Manage to expose methods so that we can call it from jmx, and with
jmx, we don't need to care about cache, so i think we should set http response'
header to no-cache in RestResource, that mean the http responses always are not cached
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira