Is there a way to cache GWT output files (i.e all the *.cache files)
on the client so that they don't have to be loaded each time? I've
tried writing a server script that adds a response header for
"Expires" but that doesn't seem to work.
here's a snippet of the python script:
def get(self):
if self.request.path.startswith('/registration'):
""" Foward to registration form"""
path = os.path.join(os.path.dirname(__file__), self.page)
expires_date = datetime.datetime.utcnow() +
datetime.timedelta(365)
expires_str = expires_date.strftime("%d %b %Y %H:%M:%S
GMT")
self.response.headers.add_header("Expires", expires_str)
self.response.out.write(template.render(path, {'html' :
self.html} ))
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---