Fork me on GitHub
#luminus
<
2017-12-21
>
msolli11:12:11

I’m trying to add cache headers for compiled JS files in dev mode, in order to prevent the problems described here: https://github.com/bhauman/lein-figwheel/issues/546. 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?

msolli13:12:40

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.