Skip to content

Instantly share code, notes, and snippets.

View justis's full-sized avatar

Justis Peters justis

View GitHub Profile
@justis
justis / request-processor-procs-partial.tcl
Created September 7, 2011 19:42
no client caching for www/resources on development systems
ad_proc -private rp_resources_filter { why } {
This filter runs on all URLs of the form /resources/*. The acs-resources package
mounts itself at /resources but we short circuit references here in order to
maximize throughput for resource files. We just ns_returnfile the file, no
permissions are checked, the ad_conn structure is not initialized, etc.
There are two mapping possibilities:
/resources/package-key/* maps to root/packages/package-key/www/resources/*