<

[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x

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

Published on
12,194 Points
6,094 Views
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…
1
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
0 Comments

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Join & Write a Comment

Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month