3 comments

[ 3.7 ms ] story [ 1147 ms ] thread

    Cache-Control: private, max-age=600
With an explicit version number in the URL, there's little reason to have a 10 minute expiration period for a .js file. Why not save bandwidth and money (and improve performance to boot) with a more reasonable expires setting?
This file integrates as a widget code on customer websites. We don't expect our customers to change this code often. However, we do continue to change the underlying code (to push updates, new releases etc). The idea is that visitors on our customer websites get the new code whenever it changes.

I do agree that the number (10mins) could be a bit scientific. But you get the idea as to why we kept it as such.

Use Entity Tags and Last-Modified Dates as far as possible for caching. other options may be Module mod_expires