electricity
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -35,3 +35,3 @@ { | ||
}, | ||
"version": "1.2.1" | ||
"version": "1.2.2" | ||
} |
@@ -114,2 +114,12 @@ Electricity | ||
##HTTP Headers | ||
Electricity sets proper `Cache-Control`, `ETag`, `Expires`, and `Last-Modified` headers to help avoid unnecessary HTTP requests on subsequent page views. If you'd like to specify literal values for specific HTTP headers you can set them in the `headers` option. This is useful if you need to specify a `Access-Control-Allow-Origin` header when loading fonts or JSON data off a CDN. | ||
``` | ||
app.use(electricity.static(__dirname + '/public', { | ||
headers: { 'Access-Control-Allow-Origin': '*' } | ||
})); | ||
``` | ||
##CSS URI Values | ||
@@ -116,0 +126,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104565
167