JSPM

jumanji

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q42801F
  • License MIT

When Safari goes wrong.

Package Exports

  • jumanji

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jumanji) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Jumanji

stampede

For when Safari goes wrong

There appears to be a bug in Safari and Mobile Safari where in private browsing mode it will add a 'Cache-Control': 'maxage=0' header to a request while clearing the browser cache at the same time. Express will reasonably respond with a 304 status code. This causes Safari to attempt to load the page from its empty cache, leaving the user seeing...nothing.

Bad Safari.

Jumanji is a middleware component that hacks around this issue. It's not big and it's not clever but it's got users seeing pages again.

Installation

$ npm install jumanji

Usage

var express = require('express'),
    app = express(),
    jumanji = require('jumanji');

app.use(jumanji);

Further Reading