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

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?

Try the following to force the browser to disable the cache

<?php echo $this->Html->css('style.css?'.time()); ?>

Need Your Help

Why array size is not changing?

c arrays

In this example i want to learn how to dynamically allocate the memory. This is my code:

On Linux get disk space used per user when you are not root

linux storage disk du

du --max-depth=1 will give the usage of the user you are logged in as. But we have a dev box shared by more than one team, so its getting tough to find the culprit.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.