title: Why wont my modal work after returning to the website?
body: <p>For some reason I cannot reuse my modal once I leave the site. In order to make it work you need to clear the cache.</p>
  
  <p>Here is the code for my modal:</p>
  
  <pre><code>    &lt;div class="col-md-4 col-lg-offset-0 col-lg-4"&gt;
               &lt;div class="card"&gt;
                  &lt;img class="card-img-top" src="images/london.PNG" alt="London" width="450px"&gt;
                  &lt;div class="card-body"&gt;
                     &lt;h4 class="card-title"&gt;&lt;/h4&gt;
                      &lt;/div&gt;
  
                   &lt;!-- Trigger the modal with a button --&gt;
  &lt;button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#london"&gt;London&lt;/button&gt;
  
  &lt;!-- Modal --&gt;
  &lt;div id="london" class="modal fade" role="dialog"&gt;
    &lt;div class="modal-dialog"&gt;
  
      &lt;!-- Modal content--&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
          &lt;h4 class="modal-title"&gt;Leaving Site&lt;/h4&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          &lt;p&gt;You are leaving this site, Do you wish to continue?.&lt;/p&gt;
        &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
            &lt;row&gt;
                 &lt;div class="col-lg-6"&gt;
                &lt;a href="http://www.temp1.absolutehtml.co.uk/" class="btn btn-success" onclick="$('#london').modal('hide')"&gt;Yes&lt;/a&gt;
                &lt;/div&gt;
            &lt;div class="col-lg-6"&gt;
                &lt;a href="http://www.temp1.absolutehtml.co.uk/" data-dismiss="modal" class="btn btn-danger"&gt;No&lt;/a&gt;
                &lt;/div&gt;
            &lt;/row&gt;
  
  
  
        &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
      &lt;/div&gt;
                   &lt;/div&gt;
            &lt;/div&gt;
  </code></pre>
  
  <p>The url is
  www.absolutehtml.co.uk/indexnew.html and the section is the templates. I want to be able to open the link in a modal and then close it.</p>
  
  <p>Codepen to full code</p>
  
  <p><a href="https://codepen.io/anon/pen/OEZOra" rel="nofollow noreferrer">https://codepen.io/anon/pen/OEZOra</a></p>