Jump to content



Photo
- - - - -

a new update that will speed up everything!


  • Please log in to reply
5 replies to this topic

#1 2072

2072

    Casio over god

  • Admin
  • PipPipPipPipPipPipPipPip
  • 1565 posts
  • Gender:Male
  • Location:Somewherebourg
  • Interests:Alternative states of consciousness, programming, making things work the best they possibly can.

  • Calculators:
    AFX2 ROM 1.02, CFX-9940GT+, FX-180P-Plus

Posted 26 October 2003 - 04:55 AM

Yes now if your browser cache is activated all images (avatar smileys etc...) will be valid for 1 month, that means that your browser won't re-download or check the date of image files.

This update affect my whole server.

If you want to do the same on your server just add the followings lines in your .htaccess file:

ExpiresActive On                  
ExpiresByType image/gif "access plus 1 month"  
ExpiresByType image/jpeg "access plus 1 month"  
ExpiresByType image/png "access plus 1 month"  
ExpiresByType text/plain "access plus 1 day"
ExpiresByType text/css "access plus 1 day"
ExpiresByType application/x-javascript "access plus 1 day"

But be careful: if your website is behind an autaumatic cache (this is the case for ucnetwork and 2072productions) or if your users are using a proxy, if you change one of the above file type, even if a user is never came onto your site he'll get the old file version until he make CTRL+F5 (in IE) or until the file expires...

You can check the headers sent by your server using:

http://www.delorie.c...eb/headers.html

to have more information about mod_expires (apache):

http://httpd.apache....od_expires.html

#2 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 26 October 2003 - 05:03 AM

ok, this wont keep new content from being show will it?

#3 2072

2072

    Casio over god

  • Admin
  • PipPipPipPipPipPipPipPip
  • 1565 posts
  • Gender:Male
  • Location:Somewherebourg
  • Interests:Alternative states of consciousness, programming, making things work the best they possibly can.

  • Calculators:
    AFX2 ROM 1.02, CFX-9940GT+, FX-180P-Plus

Posted 26 October 2003 - 05:11 AM

no it doesn't affects php files (I have edited my post, you can do the same on your server).

#4 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 26 October 2003 - 05:14 AM

cool, I'll do that. Thanks.

#5 CrimsonCasio

CrimsonCasio

    UCF Ambassador

  • [Legends]
  • PipPipPipPipPipPipPipPipPipPip
  • 3579 posts
  • Gender:Male
  • Location:USA
  • Interests:Claculators, Stephen King, Video Games, Calculators, Programming, Calculators, Reading, Calculators... hmm, what else... Ah! Calculators!

  • Calculators:
    Algebra FX2.0, CFX 9850Ga+, Classpad 300

Posted 03 November 2003 - 01:14 AM

hmm, I just got arround to trying this and it caused an internal server error... any idea why?

#6 2072

2072

    Casio over god

  • Admin
  • PipPipPipPipPipPipPipPip
  • 1565 posts
  • Gender:Male
  • Location:Somewherebourg
  • Interests:Alternative states of consciousness, programming, making things work the best they possibly can.

  • Calculators:
    AFX2 ROM 1.02, CFX-9940GT+, FX-180P-Plus

Posted 03 November 2003 - 01:37 AM

Hmmm your apache isn't compiled with mod_expires... Maybe your host made that to help their users to reach their traffic limit... or maybe you did a syntax error :unsure:

you should ask them.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users