tag:support.markedapp.com,2011-09-11:/discussions/problems/109502-images-not-updated-until-restartMarked: Discussion 2016-01-27T19:19:07Ztag:support.markedapp.com,2011-09-11:Comment/390188702016-01-27T12:20:24Z2016-01-27T12:20:24ZImages not updated until restart<div><p>Does hitting ⌘R update the image?</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/390188702016-01-27T14:45:50Z2016-01-27T14:45:50ZImages not updated until restart<div><p>No update on ⌘R.</p></div>Gustaf Ekebergtag:support.markedapp.com,2011-09-11:Comment/390188702016-01-27T15:22:11Z2016-01-27T15:22:11ZImages not updated until restart<div><p>In your preprocessor, try appending a random query string to the
image path to bust the cache, e.g.</p>
<p>Image.png?4347</p>
<p>If the query changes with each write it may avoid the issue.
Barring that, show me the markup that your script is sending back
to Marked.</p>
<p>Thanks,</p>
<p>Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/390188702016-01-27T18:33:19Z2016-01-27T18:33:19ZImages not updated until restart<div><p>Thank you for this solution, it works great and was really easy
to add to my script!</p>
<p>The script just replaces a LilyPond-section with something like
this (with random string appended):</p>
<pre>
<code><figure class="music-wrapper"><img src="lilypond-snippet-no-0.png?1234" /></figure></code>
</pre>
<p>I think that it would be good if Marked could determine if an
image was updated or not, sometimes you edit files and you want to
see the result when hitting ⌘R.</p>
<p>Thanks for a great product and great support!</p>
<p>Gustaf</p></div>Gustaf Ekebergtag:support.markedapp.com,2011-09-11:Comment/390188702016-01-27T18:49:41Z2016-01-27T18:49:41ZImages not updated until restart<div><p>It should already do that. It searches for IMG tags when loading
and adds file watchers for detected local images. It usually works,
but occasionally either caching or the method used to write to the
file throws it off.</p>
<p>Thanks,</p>
<p>Brett</p></div>Brett