Skip to content

maxAge not being set #740

Description

@stongo

docpad: v6.58.0
node: v0.10.21
npm: 1.3.11
skeleton: twitter-bootstrap.docpad
os: mac os 10.8.5
assert: setting maxAge should set a Cache-Control header for files being served by the docpad express server
result:Cache-Control header not set

I found the only way to set the Cache-Control header was within the serverMiddlewareHeader method (https://github.com/bevry/docpad/blob/master/src/lib/docpad.coffee#L4512)

Also having issues with a plugin I just wrote https://github.com/stongo/docpad-plugin-st
It handles gzip correctly for instance, but is unable to set the Cache-Control header.

The static middleware here https://github.com/bevry/docpad/blob/master/src/lib/docpad.coffee#L4662 isn't setting the cache either

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions