Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2005, 02:51 PM
Faglork's Avatar
WebProWorld Veteran
 

Join Date: Feb 2005
Location: Forchheim, Germany
Posts: 947
Faglork RepRank 0
Default Caching question

In your experience, does caching play the same role as some years ago? I discussed that recently with a friend, and he had the opinion that nowadays there is only a neglectible difference in download speed between cached and non-cached sites, because the overall connection quality has improved in a huge way.

I for myself do not see any differences in download speed, but I am on a 3Mbit DSL, so I probably don't notice. How big is the difference with a modem connection? Has anybody compared this recently?

I am asking because I am experimenting a bit with mod_expires and just wonder whether it really justifies the effort. From a site owner point of view. Of course, from an ISP point of view it has its merits ...

What is your experience?

Alex
Reply With Quote
  #2 (permalink)  
Old 02-18-2005, 05:39 AM
WebProWorld New Member
 

Join Date: Feb 2005
Posts: 1
ferki RepRank 0
Default

Today is more essential claim of cashing for better performance of your server. With faster connection of clients your web server can be much more exposed to traffic from them. If you are expecting few people browsing your site it is not so necessary to do caching. But if you have thousands of clients every day and your web application is more complex with many request to storage (Sql) and huge enumeratins and computation then is client side or server side cashing the right way to preserve good performance of server and server resources.
__________________
Frantisek Cech
http://netpublisher.fragmentsolutions.com
Affordable CMS solution
Reply With Quote
  #3 (permalink)  
Old 02-18-2005, 02:16 PM
Easywebdev's Avatar
WebProWorld Veteran
 

Join Date: Apr 2004
Posts: 328
Easywebdev RepRank 1
Default

I use mod_expires and mod_gzip.
Here is a link to a good site with tips on setting cache by file extension in the httpd.conf.

mod_gzip should help lessen any server impact from the more frequent requests.

Hope that helps.
__________________
"I have not failed. I have found 10,000 ways that don't work" - Thomas Edison.
"The secret to creativity is knowing how to hide your sources" - Albert Einstein.
Reply With Quote
  #4 (permalink)  
Old 02-18-2005, 04:13 PM
Faglork's Avatar
WebProWorld Veteran
 

Join Date: Feb 2005
Location: Forchheim, Germany
Posts: 947
Faglork RepRank 0
Default

Thx! That <FilesMatch "\.(gif|jpg|png|js|css)$"> was what I was after. I cache by mime-type and was looking for more granularity. FilesMatch somehow eluded me ...

Did you ever have any problems using mod_gzip? Are there any downsides?

Alex
Reply With Quote
  #5 (permalink)  
Old 02-18-2005, 04:28 PM
Easywebdev's Avatar
WebProWorld Veteran
 

Join Date: Apr 2004
Posts: 328
Easywebdev RepRank 1
Default

The only problems I've ever encountered with mod_gzip is when you are serving compressed downloads, ie, zip, tar.gz, bzip 2 files. Those files will end up with the first few bytes (cant remember how many) corrupted and the download will be useless.
I get by that by using ini_set("zlib.output_compression", "Off"); before I send the headers for the download file if using php.

If you are not using php you can use a .htacces file with SetEnvIfNoCase Request_URI \.(?:zip|gz|bz2)$ no-gzip dont-vary

I've never encountered a problem with mod_gzip and non compressed files.
__________________
"I have not failed. I have found 10,000 ways that don't work" - Thomas Edison.
"The secret to creativity is knowing how to hide your sources" - Albert Einstein.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0