When you change your CSS code inside your .css page, you may notice that your changes are not updated on your website.
Even with Google Chrome or another browser's Developer Tools set to [Disable Cache (While DevTools is open)], it does not make a difference.
In this article, we will examine different ways to update our CSS pages whenever we make a change.
[Classic ASP - CSS Link]
CFFCS | CarrzSynEdit: | ASP/VBScript
<%
 ' DIM is not needed in most cases, but it is left in in case yours needs it.

 ' VB.NET is required, but it is not required in Classic ASP, unless you use <%Option Explicit%> in your page.

Dim hh, mm, ss, versionStr

' 1. Get raw components

hh = Hour(Now())   ' Returns 9 (no leading zero)

mm = Minute(Now()) ' Returns 6

ss = Second(Now()) ' Returns 25


' 2. Pad minutes and seconds with leading zeros if they are single digits

mm = Right("0" & mm, 2)
ss = Right("0" & ss, 2)

' 3. Combine them (Hour remains unpadded to match your 90625 requirement)

versionStr = hh & mm & ss
%>
<link rel="stylesheet" href="MyCSS.css?v=<%=versionStr%>">

[ASP.NET - VB.NET CSS Link]
CFFCS | CarrzSynEdit: | ASP.NET (VB/C#)
<%Dim versionStr As String = DateTime.Now.ToString("hmmss")%>
<link rel="stylesheet" href="MyCSS.css?v=<%=versionStr%>">

[ASP.NET - C#.NET CSS Link]
CFFCS | CarrzSynEdit: | ASP.NET (VB/C#)
<%string versionStr = DateTime.Now.ToString("hmmss");%>
<link rel="stylesheet" href="MyCSS.css?v=<%=versionStr%>">

[PHP - CSS Link]
CFFCS | CarrzSynEdit: | HTML (Hyper Text Markup Language)
<?php
$versionStr = date("gis"); // Generates "90625" 
?>
<link rel="stylesheet" href="MyCSS.css?v=<?php echo $versionStr; ?>">

What the above code does.
When the page loads, the script retrieves the page load time, then loads the CSS page in its current state. Without this time in place, you will get the state of the CSS file from the last time it was cached by the web browser or by the web server.