How to prevent caching of static files in Yesod?

I use the liner site and whenever I change something in javascript static files, I have to stop the development server and run "cabal install && yesod devel" for the changes to take effect.

Is there a way to use regular js / css instead of cached versions, so I don't need to recompile constantly?

+5
source share
2 answers

Try

touch Settings/StaticFiles.hs

This is that particular file, because the haskell template for static files is in this file (in the default structure for forests). Touching this file will recompile it and re-execute the haskell template code.


edit: , , , js/css, templates. , js/css static, , .js/.css template , , css js.

js/css static, , , css. . .

+5

wiki entry - , , Yesod , javascript.

+1
source

All Articles