Posted By


daemondevin on 09/27/19

Tagged


Statistics


Viewed 523 times
Favorited by 0 user(s)

lastModified.func.php


/ Published in: PHP
Save to your folder(s)

With this snippet you will have the ability to deliver the most recent version of any file.

When dealing with a browser's cache you can't be certain your viewers are getting the most recent copy. By appending a GET value (the UNIX timestamp) to, for example, a stylesheet, you can make the browser think the stylesheet is dynamic, thus reloading the stylesheet time the modification date changes.

URL: http://portableappz.x10.mx/extras/lastModified

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.