Forum Moderators: open

Message Too Old, No Replies

Google Ajax API - OK to Cache JS & CSS?

Google forces user to re-request JS/CSS on each request

         

davidecd

8:53 pm on Feb 5, 2008 (gmt 0)

10+ Year Member



We're using Google's AJAX API, which involves cutting and pasting a reference to some external JS/CSS files that come from Google. Even though these files don't change often, expire headers aren't set so they get requested for each and every page where we use the API. These seems unnecessary. Anybody else noticed this? What about just saving these files as local copies and serving them up with expire headers?

eelixduppy

9:07 pm on Feb 5, 2008 (gmt 0)



Dont' see any major problems coming from it. I haven't tried it personally, but you should give it a try and see how much of a difference it actually makes. You might actually surprise yourself :)