<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

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

Published on
12,595 Points
6,495 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

HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Join & Write a Comment

This is Part-2 of Learning to use the Power of Mailwasher Pro so if you haven't watched Part-1 yet, I urge you to do so before watching this video. Click this link to watch Part-1 (https://www.experts-exchange.com/videos/56638/Learn-to-use-the-POWER…
Make it easier to see the current record on your Microsoft Access forms! To highlight the current record with a yellow background color, use Conditional Formatting, a control to keep track of the primary key value, a control to change color, and a l…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month