<html 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=big5">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@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:"Default Sans Serif";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {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:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US">Okay ¡V but what happens if you are communicating with a non REST endpoint. Consider a Web services endpoint for example where a request is only interacted with via POST but the operation
 for example may frequently be a read based function akin to a HTTP GET? Is Squid just simply not going to help cache those requests? It is only helpful for more strict alignment to REST principles?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Default Sans Serif"">Kind regards,<br>
<br>
Andy Armstrong </span><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"MS Mincho"">¦w­}</span><span style="font-family:"Default Sans Serif"">
</span><span style="font-family:"MS Mincho"">ªü©i´µ¯S®Ô</span><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Default Sans Serif"">Principal Specialist for Z Technologies</span><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Default Sans Serif"">EMEA Squad Leader for Hybrid Cloud<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Default Sans Serif"">Worldwide Community Leader for Hybrid Cloud<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Default Sans Serif"">Member of the CTO Office Server & Storage EMEA<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Default Sans Serif"">Distinguished Technical Specialist ¡V The Open Group</span><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Default Sans Serif"">IBM Master Inventor<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
</span><span style="font-family:"Default Sans Serif"">Mobile: +447500103874</span><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">squid-users <squid-users-bounces@lists.squid-cache.org> on behalf of Amos Jeffries <squid3@treenet.co.nz><br>
<b>Date: </b>Tuesday, 27 September 2022 at 19:45<br>
<b>To: </b>squid-users@lists.squid-cache.org <squid-users@lists.squid-cache.org><br>
<b>Subject: </b>[EXTERNAL] Re: [squid-users] TCP_MISS only<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">On 27/09/22 23:01, Andy Armstrong wrote:<br>
> Hi Alex,<br>
> <br>
> That makes a lot of sense, I don¡¦t know how I overlooked that ¡V thank <br>
> you. I also agree, logically caching a 201 response makes little sense, <br>
> and it was just an example I had that was easy to try so I used that.<br>
> <br>
> I just altered the HTTP Return code so it sent 200 instead of 201, and <br>
> the result is sadly the same, I get many, many lines like this:<br>
> <br>
<br>
Unfortunately that is not enough. POST method is also not cacheable by <br>
default. See <https://www.rfc-editor.org/rfc/rfc9110#section-9.3.3
 ><br>
<br>
Consider what would happen when two clients POST different sets of data <br>
to the same URL.  Which one should the cache handle *instead* of letting <br>
it be delivered to a server?<br>
<br>
<br>
> 1664272638.44310107 10.1.1.70 TCP_MISS/200 275 POST <br>
> <a href="http://192.168.0.2:3001/InternalCommunicationServices/message/email">http://192.168.0.2:3001/InternalCommunicationServices/message/email</a>  
 - <br>
> HIER_DIRECT/192.168.0.2 application/json<br>
> <br>
> My suspicion is still that my refresh_pattern is wrong:<br>
> <br>
> refresh_pattern -i <a href="http://129.168.0.2:3001%5C/.*">http://129.168.0.2:3001%5C/.*</a>  
 10080 100% 43200 <br>
> override-lastmod<br>
> <br>
<br>
refresh_pattern directive does not make things cacheable when they are <br>
not. It can only extend or shrink cacheability times.<br>
<br>
<br>
HTH<br>
Amos<br>
_______________________________________________<br>
squid-users mailing list<br>
squid-users@lists.squid-cache.org<br>
<a href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a> 
<o:p></o:p></span></p>
</div>
</div>

<DIV>
Unless otherwise stated above:<BR>
<BR>
IBM United Kingdom Limited<BR>
Registered in England and Wales with number 741598<BR>
Registered office: PO Box 41, North Harbour, Portsmouth, Hants. PO6 3AU<BR>
</DIV></body>
</html>