<p dir="auto">By default Bootstrap Modal caches data loaded from remote resource. In my case I have different links to show different content in the same modal instance.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;a class=&quot;btn btn-success pull-right&quot; href=&quot;/feedback&quot; data-target=&quot;#modalFeedback&quot; data-toggle=&quot;modal&quot;&gt;Write review&lt;/a&gt;
&lt;a class=&quot;btn btn-success pull-right&quot; href=&quot;/feedback?subject=order&quot; data-target=&quot;#modalFeedback&quot; data-toggle=&quot;modal&quot;&gt;Order&lt;/a&gt;"><pre class="notranslate"><code class="notranslate">&lt;a class="btn btn-success pull-right" href="/feedback" data-target="#modalFeedback" data-toggle="modal"&gt;Write review&lt;/a&gt;
&lt;a class="btn btn-success pull-right" href="/feedback?subject=order" data-target="#modalFeedback" data-toggle="modal"&gt;Order&lt;/a&gt;
</code></pre></div>
<p dir="auto">As you can see - I have two different addresses. But in Modal I see only first loaded page. All other clicks show me the same "old" content.</p>
<p dir="auto">I solve this problem in this way:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    // no cache data loaded to modal popup (by default it's cached)
    $('body').on('hidden.bs.modal', '.modal', function (event) {
        $(this).removeData('bs.modal');
    });"><pre class="notranslate"><code class="notranslate">    // no cache data loaded to modal popup (by default it's cached)
    $('body').on('hidden.bs.modal', '.modal', function (event) {
        $(this).removeData('bs.modal');
    });
</code></pre></div>
<p dir="auto">I think that it will be better if you will add option <code class="notranslate">cache</code> <em>(true/false)</em> to Modal to control caching. It's not big change, but very helpful.</p>
<p dir="auto">This is for tracking <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25881679" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/12296" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/12296/hovercard" href="https://github.com/twbs/bootstrap/pull/12296">#12296</a>, in case the PR's author is unable to follow up.</p>