Jump to content
Latest News: (loading..)

Recommended Posts

The trick to get always the latest changes if you edited your style-sheet:

Admin example:
 

<?php $mtime = filemtime('includes/stylesheet.css'); ?>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css?mod=<?php echo $mtime; ?>">

 

Share this post


Link to post
Share on other sites

So, browsers will access then cache based on the mod?  Assuming you have css set cache in browsers.  That's easier than editing by hand for sure.


I'm not really a dog.

Share this post


Link to post
Share on other sites

Thanks Henry,

I implented that but changed it a bit to only be one line

<link rel="stylesheet" type="text/css" href="ext/bootstrap/css/bootstrap.min-user2.css?mod=<?php echo filemtime('ext/bootstrap/css/bootstrap.min-user2.css'); ?>">

 


I'm not really a dog.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×