Post by account_disabled on Dec 1, 2023 23:56:18 GMT -4
Hello, since I've been busy with many missions lately, I'm a little late in updating. I apologize. Today, I accidentally came across some cool CSS techniques while playing with HTML5 , so I wanted to share them with you. First of all, let's see what problems the browser has. Why is it necessary to use CSS Versioning ? Web Browser won't refresh CSS file? Normally, this If we don't instruct the browser to turn on the No Cache system , the browser will cache (store) the CSS files (for Firefox , I use the method of installing a plug-in called Web Developer and then going to settings As for other browsers, I don't know.) Which is enough for web browsers. Cached files will cause the problem that When entering the same website again Only the HTML code will be reloaded, while the CSS files will be taken from the cache.
If anyone has ever edited a theme on a ready-made blog like Exteen.com , they probably Phone Number List know that to edit CSS, you have to tell readers who have visited our website before to refresh and clear the entire cache by pressing Ctrl. +F5 so they can see our new CSS look. Now, in the past, I didn't know how to solve it. Can only upload a new blog to say that the new theme has been changed. Anyone who hasn't seen it yet, press refresh and clear the cache. But today I came across a very easy and cool method. (But it can't be used with Exteen. It must be used with websites where we can edit HTML ourselves.) That is a method called CSS Versioning .
What is CSS Versioning and how to do it? This technique is as the name suggests. It involves adding a version to CSS so that the browser understands that it's not the original CSS that was previously stored . The method for doing it is simple. Let's take a look at the code. Suppose the HTML code used to call the CSS file in our <head> section looks like this: Notice the version number. Go behind the CSS file name to set the version. However, this is not required. v= version number always. You may use d= version number or ver= version number. Simply put, you can write any English letter. Just follow ? That's enough. The version number is not specified to be We can start from 1001 as I wrote in the example.
If anyone has ever edited a theme on a ready-made blog like Exteen.com , they probably Phone Number List know that to edit CSS, you have to tell readers who have visited our website before to refresh and clear the entire cache by pressing Ctrl. +F5 so they can see our new CSS look. Now, in the past, I didn't know how to solve it. Can only upload a new blog to say that the new theme has been changed. Anyone who hasn't seen it yet, press refresh and clear the cache. But today I came across a very easy and cool method. (But it can't be used with Exteen. It must be used with websites where we can edit HTML ourselves.) That is a method called CSS Versioning .
What is CSS Versioning and how to do it? This technique is as the name suggests. It involves adding a version to CSS so that the browser understands that it's not the original CSS that was previously stored . The method for doing it is simple. Let's take a look at the code. Suppose the HTML code used to call the CSS file in our <head> section looks like this: Notice the version number. Go behind the CSS file name to set the version. However, this is not required. v= version number always. You may use d= version number or ver= version number. Simply put, you can write any English letter. Just follow ? That's enough. The version number is not specified to be We can start from 1001 as I wrote in the example.