inherit
47326
0
May 4, 2018 13:42:13 GMT -8
Ryan
380
June 2005
jimthekitty
|
Post by Ryan on Aug 21, 2012 23:09:17 GMT -8
So lately I've been working on my own image host in PHP/Perl. The image handler and everything else is PERL and the file upload (WIP) is in PHP. Right now it appears that my images for some reason are having difficulty caching for some people, is this image caching for everyone? (yeah, it's a random image I found on 4chan, just ignore =p)
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Aug 22, 2012 15:43:28 GMT -8
As long as you're not serving the images via PHP or Perl, there shouldn't be any cache problems.
|
|
inherit
47326
0
May 4, 2018 13:42:13 GMT -8
Ryan
380
June 2005
jimthekitty
|
Post by Ryan on Aug 22, 2012 16:07:48 GMT -8
As long as you're not serving the images via PHP or Perl, there shouldn't be any cache problems. They are being served via a perl script I wrote, the appear to be caching.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Aug 22, 2012 16:26:11 GMT -8
Well, however you're using Perl to display the image, make sure it has the headers of an image along with the cache-expiration.
|
|
inherit
47326
0
May 4, 2018 13:42:13 GMT -8
Ryan
380
June 2005
jimthekitty
|
Post by Ryan on Aug 22, 2012 16:27:38 GMT -8
Well, however you're using Perl to display the image, make sure it has the headers of an image along with the cache-expiration. Yeah, I've since added that after making this thread. $zhr=time2str("%a, %d %b %Y %X %Z", time); $thr=time2str("%a, %d %b %Y %X %Z", time+86400); print "Date: ".$zhr."\n"; print "Expires:".$thr."\n";
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Aug 22, 2012 16:31:31 GMT -8
Well, however you're using Perl to display the image, make sure it has the headers of an image along with the cache-expiration. Yeah, I've since added that after making this thread. $zhr=time2str("%a, %d %b %Y %X %Z", time); $thr=time2str("%a, %d %b %Y %X %Z", time+86400); print "Date: ".$zhr."\n"; print "Expires:".$thr."\n"; $zhr=time2str("%a, %d %b %Y %X %Z", time); $thr=time2str("%a, %d %b %Y %X %Z", time+86400); Why is "time" without a $ in the time2str function's parameters? Or is this perl but looks like PHP? Dx
|
|
inherit
47326
0
May 4, 2018 13:42:13 GMT -8
Ryan
380
June 2005
jimthekitty
|
Post by Ryan on Aug 22, 2012 16:32:34 GMT -8
Yeah, I've since added that after making this thread. $zhr=time2str("%a, %d %b %Y %X %Z", time); $thr=time2str("%a, %d %b %Y %X %Z", time+86400); print "Date: ".$zhr."\n"; print "Expires:".$thr."\n"; $zhr=time2str("%a, %d %b %Y %X %Z", time); $thr=time2str("%a, %d %b %Y %X %Z", time+86400); Why is "time" without a $ in the time2str function's parameters? Or is this perl but looks like PHP? Dx Haha it's perl, also they're in vars since I have those two stored in different blocks, the time functions are defined with the rest of my vars.
|
|