Git Product home page Git Product logo

reverseproxycdn's Introduction

Reverse Proxy

A simple ASP.NET reverse proxy website that anyone can use.

This project aims to create a very simple mechanism for serving static files from a separate domain than the main website.

The Reverse Proxy site can then easily be deployed to any web server or to Azure and then use the Traffic Manager to distribute the files globally.

There are several reasons why it's a good idea to serve static files from separate domains (or subdomains).

  1. No cookies are sent or received making the payload smaller
  2. Free up the browser's request limit to serve the pages faster
  3. Distribute globally so the files has the shortest route to the users

Install

Fork or copy this project and deploy it to your own web server. No server components or NuGet packages needed to run this site.

The reverse proxy mechanism is all located in a very small HttpModule. This module activates when a file is requested that doesn't exist. In that case, the module will download the file and serve it immediately to the user and then save it to disk. Any subsequent request will then hit the static file on disk and served super fast without ASP.NET is involved at all.

Let's say you create a website at foo.com where you host this Reverse Proxy site.

You also have an existing website at bar.com. You can now send a request to foo.com that looks like this: http://foo.com/bar.com/images/logo.png.

Notice that the domain bar.com is the first path segment in the URL to the Reverse Proxy website. That informs the Reverse Proxy how to resolve the actual image located on bar.com.

As of recently, MiniBlog has native support for reverse proxy file serving and is fully compatible with this Reverse Proxy.

reverseproxycdn's People

Contributors

madskristensen avatar fredrikeriksson avatar terribledev avatar

Watchers

Gregory avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.