Author Topic: Caching images, thumbnails and sprite  (Read 4558 times)

0 Members and 1 Guest are viewing this topic.

Offline jeyjoo

  • Newbie
  • *
  • Posts: 46
  • Jeyjoo Web Design
    • View Profile
    • Sheffield Web Design
Caching images, thumbnails and sprite
« on: December 07, 2011, 10:43:02 PM »
Hi
Im on version 1.7.6
My gallery is http://www.jeyjoo.com/gallery/
I was wandering if there is a way to cache images, thumbnails, sprites (everything that will not subject to updates) to improve page speed.
Thanks,

Mike
Jeyjoo - kick ass web design, SEO and online marketing packages.

http://www.jeyjoo.com/gallery/ - free stock images (a 4images gallery)  |
http://www.jeyjoo.com - Sheffield web design  |  http://www.jeyjoo.com - Sheffield SEO  |  http://it.jeyjoo.com - Web Design Milano  |  http://it.jeyjoo.com - SEO Italiano

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Caching images, thumbnails and sprite
« Reply #1 on: December 08, 2011, 02:54:59 AM »
They are already being cached:
Code: [Select]
GET /gallery/data/thumbnails/21/betel-nut.jpg HTTP/1.1
Host: www.jeyjoo.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
DNT: 1
Connection: keep-alive
Referer: http://www.jeyjoo.com/gallery/
Cookie: 4images_lastvisit=1318173197; 4images_userid=-1; sessionid=23fqe6vpp33kt4bfg2gg8fhjv2
If-Modified-Since: Thu, 24 Nov 2011 09:22:08 GMT
If-None-Match: "6cc011c-ef8-920cb000"
Cache-Control: max-age=0

HTTP/1.1 304 Not Modified
Date: Thu, 08 Dec 2011 01:48:05 GMT
Server: Apache
Connection: Keep-Alive
Keep-Alive: timeout=3
Etag: "6cc011c-ef8-920cb000"
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jeyjoo

  • Newbie
  • *
  • Posts: 46
  • Jeyjoo Web Design
    • View Profile
    • Sheffield Web Design
Re: Caching images, thumbnails and sprite
« Reply #2 on: December 16, 2011, 12:38:31 PM »
  :D Ok thats great.
I use Firebug to test page speed - it was complaining that images weren't cached!
Jeyjoo - kick ass web design, SEO and online marketing packages.

http://www.jeyjoo.com/gallery/ - free stock images (a 4images gallery)  |
http://www.jeyjoo.com - Sheffield web design  |  http://www.jeyjoo.com - Sheffield SEO  |  http://it.jeyjoo.com - Web Design Milano  |  http://it.jeyjoo.com - SEO Italiano