<

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

Published on
12,298 Points
6,198 Views
1 Endorsement
Last Modified:
Approved
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…
1
Comment
0 Comments

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Join & Write a Comment

How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…
The video will let you know the exact process to import OST/PST files to the cloud based Office 365 mailboxes. Using Kernel Import PST to Office 365 tool, one can quickly import numerous OST/PST files to Office 365. Besides this, the tool also comes…
Suggested Courses
Course of the Month5 days, 20 hours left to enroll

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month