Patent attributes
Systems and methods for rewriting code related to a network page are described herein. The systems and methods can determine whether the network page includes cacheable resources. Responsive to the determination, the systems and methods can rewrite the code for the network page to cause a user system to access the cacheable resource from a content distribution network. Further, the systems and methods can determine whether access to the cacheable resource should be provided via the content distribution network or a proxy server based at least partially on a relative location of the proxy server and the content distribution network to the user system requesting access to the network page.