]> source.dussan.org Git - vaadin-framework.git/commit
Add getCacheTime(filename) to VaadinServlet (#11744)
authorFabian Lange <lange.fabian@gmail.com>
Wed, 12 Jun 2013 14:08:48 +0000 (16:08 +0200)
committerVaadin Code Review <review@vaadin.com>
Mon, 8 Jul 2013 12:19:35 +0000 (12:19 +0000)
commitcd9bd20c52423e9970d1945c374e4cbefff82569
treef0038eeecbfafb9f489cf46ae40872ac2c4c545f
parent8b5a7e940b8fcbaaf135ec3c395ffc38c62d5a1b
Add getCacheTime(filename) to VaadinServlet (#11744)

This implementation by default adheres to the GWT Pristine Caching rules
and calculates 0 seconds for ".nocache." and 1 year for ".cache."
filenames. All other filenames will use the value configured in the
deployment configuration.
By exposing this to a method, developers can implement custom naming
schemes. Developers also can opt to set an expires header using this
value.

Change-Id: Ibc0d17d48d38bfa3bb28bdf3929ad314828be406
server/src/com/vaadin/server/VaadinServlet.java