GithubHelp home page GithubHelp logo

dynajoe / http-cache-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adunkman/http-cache-demo

0.0 1.0 0.0 155 KB

A demo app for a conference talk on HTTP caching.

JavaScript 28.71% CoffeeScript 23.92% HTML 6.34% CSS 41.03%

http-cache-demo's Introduction

http-cache-demo

A demo app to show off how certain HTTP headers change caching behaviors.

Running the App

First, this app depends on having Squid running on the same machine as this app will be run and the executable squidclient available on your $PATH. Setting up Squid is outside the scope of this README — but it’s available with brew install squid if you’re one of those kinds.

After fetching this repository:

npm install
node index.js

Accessing the App

The application prints out its port binding when starting, but unless you’ve set the PORT environmental variable, it’s running at http://localhost:3000/.

Toying Around

The app lets you specify response headers (in normal Header: value format) that will be sent through Squid and back to the app. Feel free to mess around with things like Cache-Control and see how they make Squid respond (be sure to look at the X-Cache response header).

It should be pretty straightforward once you get to this point.

http-cache-demo's People

Watchers

 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.