I have my default.ctp file
...
<?php echo $this->Html->css('style.css'); ?>
...
<style type="text/css">
// other css rules
</style>
...
If I merge the “other css rules” at the end of style.css this rules will never be used. Why?
I don’t know how to proceed. I’ve deleted manually cakephp’s cache, clear firefox’s cache, and even try to append ?v=0.1 when I called css file, but nothing change.
Answer from nonslone is good, but this will disable the advantage of using cache, it will load new css file everytime loading page. Instead of using
time()function, try to usefilemtime()function, this function will outputting last modified datetime for the file, so the browser will only load the css if css file is modified or (absolutely) if chace is empty.