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
Load Web with a basic configuration:
{ "server": { "host": "127.0.0.1", "port": 3001 }, "cluster": false }
npm start and visit a route a few times, observe the request headers:
npm start
Cache-Control: public, max-age=86400 Connection: keep-alive Content-Encoding: br Content-Length: 461 Content-Type: text/html Date: Fri, 25 May 2018 13:34:20 GMT ETag: W/"1cd-16397801258" X-Cache: HIT X-Cache-Lookup: HIT
Then add a rewrites block to the config.json
rewrites
{ "server": { "host": "127.0.0.1", "port": 3001 }, "cluster": false, "rewrites": { "path": "./workspace/routes/rewrites.txt" } }
Reload the app then observe page headers again:
Connection: keep-alive Content-Encoding: br Content-Length: 461 Content-Type: text/html Date: Fri, 25 May 2018 13:35:56 GMT
DADI Web 6.0.0 Node.js 8.9 NPM 6.1.0
The text was updated successfully, but these errors were encountered:
This returns undefined when rewrites is in the config:
undefined
web/dadi/lib/cache/index.js
Line 59 in bf5316b
Sorry, something went wrong.
@abovedave what is the URL being used to test the above?
I'm using this, but also can recreate with a blank rewrites.txt file:
rewrites.txt
\/join$ /en/#join [R=302,NC,L]
jimlambie
No branches or pull requests
Load Web with a basic configuration:
npm start
and visit a route a few times, observe the request headers:Then add a
rewrites
block to the config.jsonReload the app then observe page headers again:
DADI Web 6.0.0
Node.js 8.9
NPM 6.1.0
The text was updated successfully, but these errors were encountered: