romanpitak / http-cache-warmer

Universal one-file cache warmer for the web (full-page sitemap crawler).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Http Cache Warmer

(c) 2015 Roman Piták, http://pitak.net roman@pitak.net

Universal one-file cache warmer (full-page sitemap crawler). Runs in the browser of your choice (JavaScript support required).

  • one-file container
  • one-button interface
  • full page loading (image cache warm-up)
  • platform independent (runs in browser)

Installation and usage

  1. Copy the http-cache-warmer.html file into your web project and run the url in the browser.
  2. Click the /sitemap.xml button
  3. Profit

Local installation

If you don't want to or can't pollute your web with the extra file, you can setup Nginx to act as a local proxy server. You only need the http-cache-warmer.html file and Nginx to make this work.

server {
    listen 54321;
    server_name localhost;
    root /path/to/http/cache/warmer;

    location / { try_files $uri $uri/ @backend; }

    location @backend { proxy_pass http://example.net; }
}

The http-cache-warmer will be available on http://localhost:54321/http-cache-warmer.html

About

The script downloads the /sitemap.xml file from your server and loads all the urls in iframes until tender.

Written in jade, CoffeeScript and Sass.

About

Universal one-file cache warmer for the web (full-page sitemap crawler).

License:MIT License


Languages

Language:CoffeeScript 74.1%Language:Makefile 19.3%Language:CSS 6.6%