Skip to content

Caching issues on 2.1.0 #151

Closed
Closed
@epicbagel

Description

@epicbagel

When creating a server via the API, it appears all files are being cached despite any configuration setting (set via .json or the options object).

This appears to be a regression from 2.0.2, as that handles the disabling of caching correctly. On 2.0.2:

var superstatic = require('superstatic/lib/server')
var app = superstatic({
    //config: "divshot-localdev.json",
    config: {
        root: "./build/",
        debug: true,
        cache_control: {
            "**": false
        },
        routes: {
            "**": "index.html"
        }
    },
    port: 5001
}).listen() 

On 2.1.0 I was using the same options object, but used the new import changes:

var superstatic = require('superstatic')
app = superstatic.server({
....

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions