<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Hello Fritz,</p>
<p>Your media server controls the expiration policy of your media
files. The HTTP "Expires:" header is in charge of telling the HTTP
client when the file is to be re-requested.</p>
<p>I've failed check it myself because mrq12.it2media.de:8081 may
not be accessible from the outside, but could it be that the HTTP
server returns a bogus "Expires:" header (e.g. if it has a wrongly
set system clock) or does not return it at all?</p>
<p>To verify, please simply call the following and see the console
output:<br>
</p>
<p>curl -D -
<a class="moz-txt-link-freetext" href="http://mrq12.it2media.de:8081/mr/v01/~~~200/mediafile/id/41511906/filetype/pdf?mimetype=true">http://mrq12.it2media.de:8081/mr/v01/~~~200/mediafile/id/41511906/filetype/pdf?mimetype=true</a></p>
<pre class="moz-signature" cols="72">Best regards,
Vladyslav Y. Sivyakov, RenderX.</pre>
<div class="moz-cite-prefix">On 03.08.2020 10:19, Kirch Fritz wrote:<br>
</div>
<blockquote type="cite"
cite="mid:6c2ceed0b358446b9395b1cb3eb4c9f0@it2media.de">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-language:EN-US;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.E-MailFormatvorlage21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hello Vladyslav,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">thank you for your quick answer, but let us
concentrate on the small example fo-file!
<o:p></o:p></p>
<p class="MsoNormal">It has only 1 external-graphic.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I can understand, that throughout the
formatting process, XEP has to retrieve various information
about the external resource.<o:p></o:p></p>
<p class="MsoNormal">But referring to my small example, why does
this retrieval process read the one and only graphic file 3
times?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Are there any reasons why the rendering
process doesnt use the TMPDIR for caching purposes?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Please apologize my perseverance in getting
an answer, but my media server is called 100.000 times a day
for providing graphic files.<o:p></o:p></p>
<p class="MsoNormal">If there is a small chance to reduce the
number of calls, I will be happy.<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">Fritz<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="mso-fareast-language:DE">Von:</span></b><span
style="mso-fareast-language:DE"> Xep-support
<a class="moz-txt-link-rfc2396E" href="mailto:xep-support-bounces@renderx.com"><xep-support-bounces@renderx.com></a>
<b>Im Auftrag von </b>Vladyslav Sivyakov<br>
<b>Gesendet:</b> Freitag, 31. Juli 2020 21:02<br>
<b>An:</b> <a class="moz-txt-link-abbreviated" href="mailto:xep-support@renderx.com">xep-support@renderx.com</a><br>
<b>Betreff:</b> [xep-support] Re: How often does XEP.BAT
use my graphic-URL?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="font-size:13.5pt">Hello Fritz,</span><o:p></o:p></p>
<p><span style="font-size:13.5pt">Throughout the formatting
process, XEP retrieves various information about the
external resources, like dimensions.</span><o:p></o:p></p>
<p><span style="font-size:13.5pt">Caching the entire content is
problematic because in large documents, the total size of
external resources would make the Java environment on a
formatting machine quickly run out of memory.</span><o:p></o:p></p>
<p><span style="font-size:13.5pt">There is a standard solution
for that -- XML Catalogs. You make a local copy of
frequently-used resources and configure a Catalog Resolver
do the job. Simple ones simply return local files (file:)
instead of those located on remote (http:) computers, but
nothing prevents from implementing your own sophisticated
one that has some timed-cache strategy and periodically
refreshed entities.</span><o:p></o:p></p>
<p><span style="font-size:13.5pt">A typical usage is when you're
developing DocBook documents, and each rendering process
takes an http hit to docbook.sourceforge.net. Of course,
this makes rendering slow, and you may want to improve it.
Here's more details:</span><o:p></o:p></p>
<p><a
href="http://www.renderx.com/reference.html#URI_Resolution"
moz-do-not-send="true"><span style="font-size:13.5pt">http://www.renderx.com/reference.html#URI_Resolution</span></a><o:p></o:p></p>
<p><a
href="http://www.renderx.com/reference.html#using_catalogs_for_docbook"
moz-do-not-send="true"><span style="font-size:13.5pt">http://www.renderx.com/reference.html#using_catalogs_for_docbook</span></a><o:p></o:p></p>
<p><a
href="https://www.oasis-open.org/committees/entity/spec-2001-08-06.html"
moz-do-not-send="true"><span style="font-size:13.5pt">https://www.oasis-open.org/committees/entity/spec-2001-08-06.html</span></a><o:p></o:p></p>
<p><span style="font-size:13.5pt">Alternatively, a caching proxy
could be a solution, but it may be an overhead and depend on
your needs.</span><o:p></o:p></p>
<p><o:p> </o:p></p>
<pre>Best regards,<o:p></o:p></pre>
<pre>Vladyslav Y. Sivyakov, RenderX.<o:p></o:p></pre>
<div>
<p class="MsoNormal">On 31.07.2020 09:44, Kirch Fritz wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi RenderX-Support Team, hi Kevin<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">in my FO-file (see below and in appendix)
you can find excatly one call of <fo:external-graphic>
with a url to my graphic file.<o:p></o:p></p>
<p class="MsoNormal">When I use XEP.BAT to render FO into
XEPOUT intermediate format, my server protocoll told me,
that there are 3 calls fetching the pdf-graphic from my
server.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I am wondering, why there are 3 calls?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">With the processing instruction
xep-out-embed-images:<o:p></o:p></p>
<p class="MsoNormal"> FO -> XEP calls my media server 3
times and XEP -> PDF calls my media server 0 times<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Without the processing instruction
xep-out-embed-images:<o:p></o:p></p>
<p class="MsoNormal"> FO -> XEP calls my media server 2
times and XEP -> PDF calls my media server 4 times<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">How can I minimize the number of calls to
my media server? <o:p>
</o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Fritz Kirch<o:p></o:p></p>
<p class="MsoNormal">IT2media GmbH & Co KG<o:p></o:p></p>
<p class="MsoNormal">Nuremberg, Germany<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
(*) To unsubscribe, please visit <a class="moz-txt-link-freetext" href="http://lists.renderx.com/mailman/options/xep-support">http://lists.renderx.com/mailman/options/xep-support</a>
(*) By using the Service, you expressly agree to these Terms of Service <a class="moz-txt-link-freetext" href="http://w">http://w</a>
ww.renderx.com/terms-of-service.html</pre>
</blockquote>
</body>
</html>