I am new to Joomla and just downloaded a template (from my company) and deployed it on XAMPP.
When I try to edit the CSS and refresh the page, the css does not get updated. I have tried clearing the cache and refreshing, but no such luck.
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It only takes a minute to sign up.Sign up to join this community
Joomla's default Protostar template includes CSS files with
JHtml::_('stylesheet', 'template.css', array('version' => 'auto', 'relative' => true));
The media version does NOT change when you make changes in your CSS. You could add your own timestamp to force a browser to re-load the CSS instead using it from cache.
In your template's index.php you could add something like:
use Joomla\CMS\HTML\HTMLHelper; HTMLHelper::_( 'stylesheet', 'your-css-file.css', [ 'version' => filemtime(JPATH_THEMES . '/your-template/css/your-css-file.css'), 'relative' => true ] );