<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970; background-color:#F7F9FA; color:#8D3970; font-size:14px; line-height:22px; font-family: Calibri, Arial, Helvetica, sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the University of Southampton.
</div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">As a (hopefully useful) side note, the Apache Rewrite ruleset will honour URLs for the auto css and javascript that match e.g.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">style/auto-3.3.10.css<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">style/auto-3.3.101.css<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">style/auto-3.3.10999.css<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">style/auto-3.3.100000.css<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">- any amount of digits (but only digits) before the '.css' or '.js'.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">This can be used to force newer versions of the auto- files into browsers.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">For recent versions of EPrints, I think you can copy lib/cfg.d/template_core.pl into the archive config file.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I would suggest changing this line:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">href =&gt; $repo-&gt;current_url( path =&gt; &quot;static&quot;, &quot;style/auto-&quot;.EPrints-&gt;human_version.&quot;.css&quot; ),<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">to:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">href =&gt; $repo-&gt;current_url( path =&gt; &quot;static&quot;, &quot;style/auto-&quot;.EPrints-&gt;human_version.&quot;1.css&quot; ), #note '1'
 before '.css'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Next time you need to force a different auto CSS or JS file, update the digit, or remove it!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">For older versions of EPrints (3.3.10, possibly beyond), where the loading of config files from various different directories worked
 a little differently, and overriding files from lib/cfg.d/ wasn't as simple as copying them to the local config, you could make a lovely hack, intercepting the template pins and adding extra digits to them:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fjesusbagpuss%2Fc5ae75d8cbafb902af8299ec57101d8c&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C283988c0765944a9d69508da293451cd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637867601928147126%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=%2FOFJG3RtgfI%2BQE5RquvoBG1ZiUXIqTi6nbqtyzfqFlg%3D&amp;reserved=0" originalSrc="https://gist.github.com/jesusbagpuss/c5ae75d8cbafb902af8299ec57101d8c" shash="cxKZ7qRykBituJgqtNZB3vAvBhEprXV5TdCxRaF49vna2V+h6M4zCIaYVVKjj29huHdFNJnU6Ozq5GsLo73TE2Sm0gSLlXurvECKRn4RSM+/Qhr5+CsLRIl4blJbsaUEuFg7nHlFOCN0x6FbUJXo+gFXRl+eZ0TIM4TKZx7tcUE=">https://gist.github.com/jesusbagpuss/c5ae75d8cbafb902af8299ec57101d8c</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I'm not /recommending/ the above hack - but we had it running like that without incident on 3.3.10 for a number of years!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">John<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>On Behalf Of </b>David R Newman via Eprints-tech<br>
<b>Sent:</b> 28 April 2022 16:50<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk; Yuri &lt;yurj@alfa.it&gt;<br>
<b>Subject:</b> Re: [EP-tech] auto-X.Y.Z.css<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p><span style="font-size:13.5pt">Hi Yuri,</span><o:p></o:p></p>
<p><span style="font-size:13.5pt">This is in lib/cfg.d/template_core.pl.&nbsp; This file may also be in your archive's cfg/cfg.d/ directory or possibly even the flavours/pub_lib/cfg.d/ directory if you are on 3.4.&nbsp;
</span><o:p></o:p></p>
<p><span style="font-size:13.5pt">This is the block of code you need to update (around line 39):</span><o:p></o:p></p>
<p><span style="font-size:13.5pt">&nbsp;$head-&gt;appendChild( $repo-&gt;xml-&gt;create_element( &quot;link&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rel =&gt; &quot;stylesheet&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type =&gt; &quot;text/css&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; href =&gt; $repo-&gt;current_url( path =&gt; &quot;static&quot;, &quot;style/auto-&quot;.EPrints-&gt;human_version.&quot;.css&quot; ),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) );</span><o:p></o:p></p>
<p><span style="font-size:13.5pt">Regards</span><o:p></o:p></p>
<p><span style="font-size:13.5pt">David Newman</span><o:p></o:p></p>
<div>
<p class="MsoNormal">On 28/04/2022 4:41 pm, Yuri via Eprints-tech wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>CAUTION: This e-mail originated outside the University of Southampton.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Hi!<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>&nbsp; where's the code/template that generates the link in the head to<o:p></o:p></pre>
<pre>auto-X.Y.Z.css? I've modified it, but it is cached in the browser for a<o:p></o:p></pre>
<pre>month. I need to change it in order to people to get the changes without<o:p></o:p></pre>
<pre>asking them to clear the cache.<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>Thanks!<o:p></o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre><o:p>&nbsp;</o:p></pre>
<pre>*** Options: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ecs.soton.ac.uk%2Fmailman%2Flistinfo%2Feprints-tech&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C283988c0765944a9d69508da293451cd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637867601928147126%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=9amPLTK3RbAxsb2X6E4wO9lE1KUbCPdhdxhiTy0wU8Y%3D&amp;reserved=0" originalSrc="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" shash="zEuOvEK1pICYC4YmXZqfszIyDpszC7vcMbrlihfDSfUESfejwTPISNTU7tPaHBGe7q+txgIhauiUTXxWfHQ0QJC7dDPpjHUuRX1ykduw0kP8mSCYxSoPoDR/oC1SdGr5kvNR1aC7d/1ibfBdQGitfMIQtav8D6dh/sVSMcKOhNk=">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><o:p></o:p></pre>
<pre>*** Archive: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C283988c0765944a9d69508da293451cd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637867601928147126%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=0hB2QVd%2BIN72SBRGQQ0s7eocghvhj4B8VrHDC8HC9bA%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="HDVXTfp60guEMg13Gg5bsLrbe09ARV6EZ2ak0gzsnMjegEaBc61LS9HOPlqb2UgRioDrE+ulq3WQE6JrTriy9m4Fs+bf1MwTu/909OHj96lQBxhPl5Rxtqy7cNSFA+pUWD06pAqAik0Ii5aevHUxWf/JPlhos76OnUOvx7QEr50=">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;amp;data=05%7C01%7Cdrn%40ecs.soton.ac.uk%7Cfe7e0277f94e4b10fd2a08da292da93e%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637867573327399867%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMD!<o:p></o:p></a></pre>
<pre><span class="MsoHyperlink"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C283988c0765944a9d69508da293451cd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637867601928147126%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=0hB2QVd%2BIN72SBRGQQ0s7eocghvhj4B8VrHDC8HC9bA%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="HDVXTfp60guEMg13Gg5bsLrbe09ARV6EZ2ak0gzsnMjegEaBc61LS9HOPlqb2UgRioDrE+ulq3WQE6JrTriy9m4Fs+bf1MwTu/909OHj96lQBxhPl5Rxtqy7cNSFA+pUWD06pAqAik0Ii5aevHUxWf/JPlhos76OnUOvx7QEr50="> AiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=qD%2Bac2q85kHMQ9C%2FngNKXI03jrGh0s52kqxiJefoXQs%3D&amp;amp;reserved=0</a></span><o:p></o:p></pre>
<pre>*** EPrints community wiki: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C283988c0765944a9d69508da293451cd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637867601928147126%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=LDuAu%2FS%2FtG596IXe935JVvU3jgbW0bnV%2F6n%2FMPRPHWo%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="WsR28E/v/XIkVLN4RbiFLsyuDcUehMVDR0YupwdPtBYt+RVzdiFEpeZmKfxEbN5wu4ZtYWyxE4hHypzps+Kmlq9Nr4wHbs6M3V3gQjaxL+E1NktcOAebPuyfNIDFih0gkqCnB82C5IAZFkXEwWu6O45f50wGhSUrJH1rXutxMhM=">https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;amp;data=05%7C01%7Cdrn%40ecs.soton.ac.uk%7Cfe7e0277f94e4b10fd2a08da292da93e%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637867573327399867%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2l!<o:p></o:p></a></pre>
<pre><span class="MsoHyperlink"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C283988c0765944a9d69508da293451cd%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637867601928147126%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=LDuAu%2FS%2FtG596IXe935JVvU3jgbW0bnV%2F6n%2FMPRPHWo%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="WsR28E/v/XIkVLN4RbiFLsyuDcUehMVDR0YupwdPtBYt+RVzdiFEpeZmKfxEbN5wu4ZtYWyxE4hHypzps+Kmlq9Nr4wHbs6M3V3gQjaxL+E1NktcOAebPuyfNIDFih0gkqCnB82C5IAZFkXEwWu6O45f50wGhSUrJH1rXutxMhM="> uMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=Mjmd7ryQW69R5WYd6mS%2FU5JtKGpw%2FU3rB6EXpf8xMKE%3D&amp;amp;reserved=0</a></span><o:p></o:p></pre>
</blockquote>
</div>
</div>
</body>
</html>