News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Better page caching...

Started by alura, October 27, 2004, 08:52:33 AM

Previous topic - Next topic

alura

Hi to all... I've a question about page caching:

Is there any way to tell the browser to cache images ?

By default smf send

header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');


For every click in the forum all images are downloaded again with a lot of bandwidth consumption.

Thanks for any solution (if any  ;)).

Marco (alura)
www.ilpistone.com

[Unknown]

Have you tried turning on "Allow browsers to go back to cached pages"?  Do the images cache here?

-[Unknown]

alura

Quote from: [Unknown] on October 27, 2004, 09:07:49 AM
Have you tried turning on "Allow browsers to go back to cached pages"?  Do the images cache here?

-[Unknown]

Seem perfect now...  ;D

Thank's [Unknown]

Can I ask you the trick ? Why the different beaviour ?

[Unknown]

Just caching headers.

-[Unknown]

ahtisilli

#4
"Allow browsers to go back to cached pages"

Two of my 1350 users complain about this setting - it was off for about six months by accident and some people got used to the wrong way (one of them is the boss). Could this setting be moved to the user settings: the admin would just set the default and each user could override the default.

Advertisement: