What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [PHP] How to cache base64 decoded images?

[PHP] How to cache base64 decoded images?
Author: Message:
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: [PHP] How to cache base64 decoded images?
Send headers that tell the browser to cache it, and only send them with stuff you want cached? I'm not sure if it will work, but worth a try... :p

code:
// date in the past
header("Last-Modified: Tue, 01 Jul 2003 00:00:00 GMT");
// date in the future
header("Expires: ".gmdate("D, d M Y H:i:s", time() + 86400)." GMT");

As long as the URL stays the same (like index.php?img=head) I think it will work... :^)
09-08-2004 02:11 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[PHP] How to cache base64 decoded images? - by KeyStorm on 09-08-2004 at 02:01 PM
RE: [PHP] How to cache base64 decoded images? - by WDZ on 09-08-2004 at 02:11 PM
RE: [PHP] How to cache base64 decoded images? - by KeyStorm on 09-08-2004 at 03:31 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On