Fork me on GitHub

I’m trying to add cache headers for compiled JS files in dev mode, in order to prevent the problems described here: I can’t wrap my head around where these files are served from - it doesn’t seem to be the regular Ring middleware that all other requests go through. Are requests for stuff in any of the :resource-paths handled by the underlying Immutant server somehow? And how would I go about adding response headers to these requests?


I found out - yes, these requests pass through the regular Ring handler. I had to add the no-cache middleware before the wrap-defaults middleware.