Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added glob matching feature for setting cache headers. #183

Merged

Conversation

lightswitch05
Copy link
Contributor

@lightswitch05 lightswitch05 commented Sep 27, 2016

  • Keep backwards compatibility with previous cache options
  • Add tests to ensure glob matching with defined cache values
  • Updated README with instructions for new cache feature

Example Usage:

fileServer  = new static.Server('/public', {
    cache: {
        '**/*.txt': 100,
        '**/': 300
    }
});

@lightswitch05 lightswitch05 force-pushed the feature/allow-greater-cache-control branch from 277f632 to b341fc0 Compare Sep 27, 2016
* Keep backwards compatibility with previous cache options
* Add tests to ensure glob matching with defined cache values
* Updated README with instructions for new cache feature
@lightswitch05 lightswitch05 force-pushed the feature/allow-greater-cache-control branch from b341fc0 to 6ccc79a Compare Sep 27, 2016
@lightswitch05
Copy link
Contributor Author

@lightswitch05 lightswitch05 commented Sep 29, 2016

Any comments or thoughts on this pull request?

@v29neil
Copy link

@v29neil v29neil commented Nov 15, 2016

any progress on this feature ?

@brettz9 brettz9 merged commit e53e174 into cloudhead:master May 21, 2021
Zarel pushed a commit to Zarel/node-static that referenced this issue Aug 10, 2021
* Keep backwards compatibility with previous cache options
* Add tests to ensure glob matching with defined cache values
* Updated README with instructions for new cache feature
Zarel pushed a commit to Zarel/node-static that referenced this issue Aug 10, 2021
* Keep backwards compatibility with previous cache options
* Add tests to ensure glob matching with defined cache values
* Updated README with instructions for new cache feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants