Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

How I can cache the assets.outputCss ?

How I can cache the assets.outputCss ?

I want't to generate the css file every time,if it exists. so I want to cache.

asset are generated each time controller is called, search the forum, somewhere a topic is about not re-minifying each time assets, the solution given could help you. Simpliest solution is not to use assets, so you can setup ressources lifetime caching at server config level

edited Jul '16

The easiest way is to join all assets into one file and add some query parameter which will be checked, like ?flush or something like this, if it occurs - then generate new css - if not - then don't and use file already stored.


i use gulp/grunt for my js/scss. They are just made for that purpose and requires few hours in order get use to them