-
Notifications
You must be signed in to change notification settings - Fork 15
Frequently Asked Questions
The aggregator supports various query args that invoke debugging features. These query args are supported when debug or development mode are enabled. To use the query args, you need to be able to propagate query args specified in the URL for your application to the aggregator loader extension config. See the sample application's test.html and loaderConfig.js to see how this may be done. The following query args can be used to help debug your application:
- optimize
- Value can be
simple
(default),whitespace
, ornone
. Controls the level of optimization/minification performed on JavaScript and CSS files. - showFilenames
- If
true
- noCache
- If
true
, then the aggregator will ignore any cached data and build the response from scratch. It will also include the Cache-Contrl:no-store header in all aggregator responses. - expandRequire
- If value =
log
, then diagnostic information related to require list expansion will be written to the browser's JavaScript console - hasBranching
- If
false
(default =true
), then has! plugin branching will not be performed.
Note: depending on the console command processor installed in your OSGi framework, the command separator can be either a space or a colon. To see which separator you need to use, try entering the commands aggregator help
and aggregator:help
. The examples in this page all use the space separator, but if your command processor uses the colon, then you should adapt the examples accordingly.
You can also try enabling loader debugging by setting the dojo-error-api
and dojo-trace-api
features, as well as specifying loader trace logging options (see the trace
property in loaderConfig.js.
Loader generated requests can be decoded in the browser client. Copy the URL you want to decode to the clipboard and then paste it into the console command below as indicated:
require.combo.decodeUrl("<paste URL here>")
Note that URL encodings are application version specific, so the client will be unable to decode a URL generated by a different version of the application.
See Decoding Aggregator request URLs for more details.