1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Serving with a CDN

Discussion in 'General PHP and MySQL Discussions' started by Lee, Oct 15, 2014.

  1. Lee

    Lee Well-Known Member

    Not php or mySQL related but I can't find a better section to put this. Please move if required.

    I am serving some jquery and css using a cdn to my latest project, but if for whatever reason the cdn is un-accessible (server down, or I want to work offline) then the content is un-obtainable .

    I guess what I am getting at is there a method to force my server to take a cache of the remote content and store it locally for use when the cdn goes offline (or I am offline)?


    Cheers,
    Lee
     
  2. Slavik

    Slavik XenForo Moderator Staff Member

    The general idea is you have the files on your server regardless, and then push (or pull) them to the CDN. So if the CDN goes down it wont matter.
     

Share This Page