Submit Your Article Forum Rules

Results 1 to 5 of 5

Thread: Caching question

  1. #1
    Senior Member Faglork's Avatar
    Join Date
    Feb 2005
    Posts
    954

    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

  2. #2
    Junior Member
    Join Date
    Feb 2005
    Posts
    1
    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.

  3. #3
    Senior Member
    Join Date
    Apr 2004
    Posts
    309
    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.

  4. #4
    Senior Member Faglork's Avatar
    Join Date
    Feb 2005
    Posts
    954
    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

  5. #5
    Senior Member
    Join Date
    Apr 2004
    Posts
    309
    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.

Similar Threads

  1. Google caching different URL which is not given in website?
    By rohit_tripathi60 in forum Search Engine Optimization Forum
    Replies: 11
    Last Post: 01-21-2010, 06:02 AM
  2. PHP Page Caching
    By mikesmith76 in forum Web Programming Discussion Forum
    Replies: 6
    Last Post: 09-22-2006, 09:16 AM
  3. Caching confusion, what the ??
    By steve_avs in forum Google Discussion Forum
    Replies: 9
    Last Post: 06-13-2005, 06:30 AM
  4. Google page caching
    By Googlest.com in forum Google Discussion Forum
    Replies: 1
    Last Post: 05-25-2004, 06:12 PM
  5. indexing and caching of website
    By aasif0670 in forum Search Engine Optimization Forum
    Replies: 7
    Last Post: 05-11-2004, 06:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •