Ninja
Hey. It did not help:
Ninja Open Joomla admin > system > clear expired cache and and clear cache.
If you are using T3 you can open site root folder and clear the t3-assets file. CSS Compression must in template style options.
Users still see old CSS styles.
When I pasted the code into a file /myebsite.com/templates/socialize/tpls/social.php:
defined('_JEXEC') or die;
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"
class='<jdoc:include type="pageclass" />'>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<jdoc:include type="head" />
<?php $this->loadBlock('head') ?>
<link href="/templates/socialize/local/css/themes/light-blue/off-canvas.css?v4" rel="stylesheet" type="text/css" />
</head>
users immediately updated styles from off-canvas.css?v4
But it turns out that at first the style was read from the browser cache from off-canvas.css and then loaded off-canvas.css?v4 - this is visible when viewing the page code ctrl+U:
<!DOCTYPE html>
<html lang="ru-ru" dir="ltr"
class='com_community view-photos task-group itemid-161 j39 mm-hover'>
<head>
<!-- Put this script tag to the <head> of your page -->
<script type="text/javascript" src="https://vk.com/js/api/share.js?95" charset="windows-1251"></script>
<base href="https://test.dryg.by/foto-i-video/photos-2" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Фотографии, фото" />
<meta name="description" content="Фотографии Клуба домашних животных и их хозяев." />
<meta name="generator" content="Joomla! - Open Source Content Management" />
<title>Клуб ДРУГ - Фото</title>
<link href="/templates/socialize/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<link href="/templates/socialize/local/css/themes/light-blue/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="/components/com_community/assets/vendors/magnific-popup/magnific-popup.css" rel="stylesheet" type="text/css" />
<link href="/components/com_community/assets/release/css/override.css" rel="stylesheet" type="text/css" />
<link href="/templates/socialize/html/com_community/assets/css/old.css" rel="stylesheet" type="text/css" />
<link href="/templates/socialize/html/com_community/assets/css/style.css" rel="stylesheet" type="text/css" />
<link href="/components/com_community/assets/pickadate/themes/classic.combined.css" rel="stylesheet" type="text/css" />
<link href="/plugins/system/jce/css/content.css?27995299e857260a77d8477776654384" rel="stylesheet" type="text/css" />
<link href="/templates/system/css/system.css" rel="stylesheet" type="text/css" />
<link href="/templates/socialize/local/css/themes/light-blue/template.css" rel="stylesheet" type="text/css" />
<link href="/templates/socialize/local/css/themes/light-blue/megamenu.css" rel="stylesheet" type="text/css" />
<link href="/templates/socialize/local/css/themes/light-blue/off-canvas.css" rel="stylesheet" type="text/css" />
<link href="/templates/socialize/fonts/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="/plugins/system/t3/base-bs3/fonts/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="/plugins/system/jomsocialchatbar/assets/css/style.css" rel="stylesheet" type="text/css" />
<link href="https://test.dryg.by/modules/mod_slogin/tmpl/default/slogin.min.css?v=1" rel="stylesheet" type="text/css" />
<link href="https://test.dryg.by/modules/mod_community_toolbar/assets/css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/**strings 34-150*/
<link href="/templates/socialize/local/css/themes/light-blue/off-canvas.css?v4" rel="stylesheet" type="text/css" />
</head>
<body class="t3-has-navbar">
It turns out that the browser reads the same CSS two times. What's not good.
It’s clear that styles get here: <?php $this->loadBlock('head') ?>
I found function loadBlock here /test.dryg.by/plugins/system/t3/includes/core/template.php
There are also functions for adding styles: function addCss
But I don’t know how to add versioning (?v4 and others if need). Can you help?
I can’t get users' cache clean, and browsers store it for a long time.