We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As the title, in express it is supported by option of express.static like
express.static
const express = require('express'); const server = express(); const oneHour = 3600000; // 3600000msec == 1hour server.use(express.static('www', { maxAge: oneHour })); // Client-side file caching server.get('/', function(req, res) { res.sendFile(__dirname + '/index.html'); }); server.listen(3000);
The text was updated successfully, but these errors were encountered:
It makes sense. I will going to add this feature for http.serve
http.serve
Sorry, something went wrong.
No branches or pull requests
As the title, in express it is supported by option of
express.static
likeThe text was updated successfully, but these errors were encountered: