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
Any idea how to add Content-Encoding header for static SVGZ files in assets without hacking connect in global Sailsjs module?
More about this trouble: senchalabs/connect#477
The text was updated successfully, but these errors were encountered:
Note: In the future, please ask questions like this on Google Groups or StackOverflow!
You can do this with a route:
// config/routes.js '/*.svgz': function(req, res, next) {res.header('Content-Encoding','svgz'); next();}
For anything more complicated, it's best to put the code inside of a service, but for this one-liner it's fine to just leave it in routes.js.
routes.js
Sorry, something went wrong.
Will try it, thx.
No branches or pull requests
Any idea how to add Content-Encoding header for static SVGZ files in assets without hacking connect in global Sailsjs module?
More about this trouble: senchalabs/connect#477
The text was updated successfully, but these errors were encountered: