Quick-Tip: Resource Aggregation on Domino 10

Friday, December 14, 2018 at 11:22 AM UTC

I just noticed a problem - or at least a different behaviour - with Domino 10 and the resource aggregation feature of an XPages application. If you ever have a problem with aggregated resources such as Javascripts and CSS files not being loaded (entirely) then remember this post.

The scenario

Just create a new NSF, a blank XPage and one or two Javascript libs (client side). Then add those libs to the XPage. In the source tab, copy the resource part that loads one Javascript and modify the filename to something that just does not exist in your NSF. Make sure resource aggregation is turned on in the XSP properties. Build the project and open the XPage in a browser.

The problem

The aggregated resources won't be loaded entirely because of just a single resource missing. This behaviour is different from a Domino 9 (FP7) environment, where the server resolves all resources perfectly, leaves out the missing one and then successfully generates the aggregated content. Domino 10 answers with a 404 error.

If you want to reproduce it or give feedback if this is also the case on Domino 9 with a feature pack (8-10) then just grab the small test NSF here: https://gitlab.com/obusse/thisandthat/blob/master/resagprob.nsf

Latest comments to this post

Michael Morban wrote on 05.04.2019, 13:00

Hi Oliver, does'nt work for me... So, no fake css/js anymore, we used it to update and skip the cache.

Greetings Michael

 Reply to this comment
 Link to this comment
Oliver Busse wrote on 04.04.2019, 17:55

Hi Michael,

I didn't test what happens if you unset the set01 errors in XSP properties (see here https://linqed.eu/2019/02/07/xpages-partial-refresh-issue-in-domino-10-0-1/), though I don't think that's a real case-worthy issue. It just reacts differently.

 Reply to this comment
 Link to this comment
Michael Morban wrote on 04.04.2019, 15:22

Hi Oliver, any solution or news on this Problem?
Maybe we should open a case on IBM/HCL?

Greetings from Berlin


 Reply to this comment
 Link to this comment

Leave a comment right here