getrailo/railo — pull request #35 by paulklinkenberg (2012-03-31 09:50:01+00:00)
Title: Layout handling changes for the Railo admin

Hi,
I was about to start working on the upload functionality for Extensions, when I once again noticed the inline images and inline styles/scripts in the admin, and the .cfm extensions for javascript files.
Since the .cfm extensions will always reload on every request, and the inline images make the page unnecessarily heavy, I made some changes.

File getfile.cfm first does a security check for valid file path, and then either returns a 304 Not Modified based on ETag, or the file (img, css, js) contents plus an ETag header.
If getfile.cfm is run from /railo-context/getfile.cfm, it will also append 2 caching headers, which should cache the contents for 1 full day. This way, while developing locally, the files will renew, but when released, the files will be renewed only once a day.

Then, I added the following directories, and moved inline styles and javascripts to the respective directories:
/railo-admin/img
/railo-admin/js
/railo-admin/css

Kind regards,

Paul Klinkenberg