CakePHP call really old css file. How to refresh
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 use filemtime() 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.
<?php echo $this->Html->css('style.css?'.filemtime('style.css')); ?>
Are you sure the updated css file is really uploaded to the server?
What happens when you load the css file in the browser? domainname.com/css/style.css
Try the following to force the browser to disable the cache
<?php echo $this->Html->css('style.css?'.time()); ?>