Comments (2)
Thanks for your feedback, and glad you found a solution.
I guess you refer to the part of the readme explaining changes between v1 and v2. I see, that it is the first code example, and you feel tempted to use it like it is.
{
enableBrotli: true, // not a serverStatic option, will not be moved
maxAge: 123, // not copied, as already present. <-- this
index: 'main.js', // copied to serveStatic section
serveStatic: {
maxAge: 234, // will be kept
cacheControl: false // will be kept as well
}
}
Do you think adding something like 'the old way' to the 'wrong' maxAge might help, or should i place the change hint, less prominent?
from express-static-gzip.
nevermind, the readme clearly says the option was moved to serveStatic
from express-static-gzip.
Related Issues (20)
- Rename "indexFromEmptyFile" to "index" HOT 4
- single-page router rendering HOT 2
- Checking for compressed versions of a file when requested, rather than at startup will alleviate several potential problems HOT 9
- brotli does not work HOT 12
- Implementation support HOT 19
- silently does not work if the static files folder path contains ".gz" HOT 2
- findAllCompressionFiles errors out if unable to access folder HOT 4
- Header content type always return gzip HOT 2
- Make passing "index" to "serve-static" optional HOT 4
- Change to just middleware? HOT 1
- Can't serve gzip files HOT 6
- Compressed files from nested folders not served HOT 1
- MIME type is 'application/gzip' instead of 'application/javascript' HOT 2
- express static gzip doesnt work in vue ssr HOT 10
- Expose serveStatic.mime HOT 2
- Invalid URI Component in Path HOT 6
- Tries to use .index file when it doesn't exist HOT 1
- Browser preferences takes preference over server HOT 2
- Ensure Https protocol for serving brotli HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from express-static-gzip.