I’m working on a site where it appears the server is caching my theme’s CSS file, and changes aren’t being reflected.
I have ensured this isn’t a browser issue. I’ve cleared browser files, used multiple browsers and devices to view the site.
Also, I have tried the following code to add a time stamp to the CSS call:
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’:wink:; echo ‘?’ . filemtime( get_stylesheet_directory() . ‘/style.css’:wink:; ?>” type=”text/css” media=”screen” />
It only works partially, in that if I decide to remove a bit of CSS code, the server picks it right back up from an older version of the file.
Does anyone have a suggestion on how to prevent the file from being cached by the server? The hosting company has been of no help in this.