How to “Leverage browser caching” on a lotus Domino Server - SEO Domino

Published on
12,433 Points
1 Endorsement
Last Modified:
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HTTP headers to instruct the browser to use his cache for further visit.

It takes 5 to 10 minutes.

Optionally: check if you need this:
You can use http://gtmetrix.com/ and analyze performance of your site. In the report look at the “Leverage browser caching” if you have “Grade 0” it’s time to read this article! (see below figure)
You also can use in fire bird, the “page Speed” (but I had problem using it)
BEFORE optimization: analyze of Leverage browser caching (gtmetrix)
In you Administrator client, in the Configuration tab, expand the Web section and click Internet Sites. Open you server(s) document in the view and create rule.

n.b. For more information on how to create rule look at: http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=/com.ibm.help.domino.admin.doc/DOC/H_WEB_SITE_RULES.html, in short you open the document of the server and click on “Web Site…/Create Rule” button.
 Domino rules for Leverage browser caching
How to define the rule:
In the Basic Tab: first choose Type of rule: HTTP response headers.
In the Incoming URL pattern: enter a pattern that will be like “*.css*”.
The important part: You have to check Expires header: Always add header (override application's header).
Specify a number of days. According to my 5 cents opinion, week or even month is OK for images or flash (*.swf).
Concerning code or CSS, it’s much more difficult to advice you! If you never change your javascript library then give a month or even more. BUT remember that if you correct/add something in the code, the browser will not check that a new version exists for as long as… you mention!

Well, nothing is definitive and if you really want to change the code you still can change the name of the library, which will force of course a refresh of the browser cache.

You already guessed that you need to create a second document precising “*.jpg*” a third …. and so on.

Now a very good tip, we of course want to copy past this IS possible but be careful this document is a response document. 1 - copy the document  with the rule, 2- GO TO THE LINE OF THE SERVER without opening it, 3- on this line, past.You just have to change the newly pasted document.

Wait! Don’t test your web site, until you send in the console the following command: “tell http refresh”

You’re done, but if you’re a bit curious let see what happen now, when answering for a request, Domino will look if one of the rules we defined applies, and in the HTTP header a new line will figure:

Expires: Sat, 23 Apr 2011 23:59:59 GMT

Yes I know it’s sad, all this for one line…

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Join & Write a Comment

When you have multiple client accounts to manage, it often feels like there aren’t enough hours in the day. With too many applications to juggle, you can’t focus on your clients, much less your growing to-do list. But that doesn’t have to be the cas…
Watch this online video tutorial and learn the best way to reduce Outlook mailbox size using Compact Now feature of Outlook. It removes the deletes item's space from Microsoft Outlook 2016, 2013, and 2010 and compresses the PST file size. This will …

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month