My-Bonzi-Tree-Ad

Prevent CSS Caching

mar

bitcoin is freedom
Staff member
Joined
Jan 14, 2015
Messages
170
Points
28
Credits
55,589,499
Bronze Usergroup
Username Style
Here is a good article i found on caching. It's useful to put this code into your server since you will always be refreshing when developing a website.

PHP
Code:
<link rel="stylesheet" type="text/css" href="style.css?<?php echo date('l jS \of F Y h:i:s A'); ?>" />

HTML
Code:
<link rel="stylesheet" type="text/css" href="style.css?Thursday 24th of April 2008 04:45:21 PM" />

Here's the article.
https://css-tricks.com/can-we-prevent-css-caching/



.
.
 
The Biggest Forums - The Biggest, Largest, Best, Most Popular Forums and Message Boards Top List on the Internet.
The Biggest Forums - The Biggest, Largest, Best, Most Popular Forums and Message Boards Top List on the Internet. Forum-List.com

Number of visitors since November 2018: