36

Would it be doable to re-generate the cooked (cached) HTML of all posts that hold images and were last edited between August 16 2010 and June 21 2011?

Many references to i.imgur.com were automatically changed into new image host (around June 20th). But it seems that for many posts the cooked HTML was not updated after the Markdown source was changed.

Like:

![+99 up / -3 down][2]

[2]: https://i.sstatic.net/lvZxk.png

...still outputs its cooked HTML without the stack part, as:

<img src="https://i.sstatic.net/7QoQV.png" alt="+99 up / -3 down">

But https://i.sstatic.net/7QoQV.png, without stack, no longer works.

The revision history and the preview generate the HTML on the fly, and hence do show the images as then the URL does include stack (making this even more confusing).

A simple dummy edit fixes it, but not many will know about that. I myself seem to have a guardian angel who fixes all my images by doing a full re-upload. But I feel that shouldn't be needed.

As an aside: if the HTML would be cooked (cached) upon first request, then "all" this takes is clearing the cooked HTML for those posts? That would distribute the server load for regenerating the HTML over a much longer period. (But it seems that currently the conversion is not on first page request.)

Even though those were originally uploaded using the toolbar button, to the Stack Exchange Imgur pro account, which should not expire to start with?

5
  • 2
    It is, by the way, not Super User only. I've also made some dummy edits on SO.
    – Arjan
    Commented Sep 2, 2011 at 11:50
  • I've seen this on Meta.SO & SO as well, I can't recall the links though Commented Sep 2, 2011 at 12:05
  • True, @Sathya, like this question on MSO. But it's not a problem for every post. Like the Markdown for another question has not been edited since January, but does include the new stack in the image URLs. (The latter is a confusing example though, as the image is actually a 404 image itself...) I've seen it happen in both questions and answers.
    – Arjan
    Commented Sep 2, 2011 at 12:14
  • 4 weeks later, now 2 of the 3 images of a specific post no longer work. October 1, October 30, ...
    – Arjan
    Commented Oct 30, 2011 at 13:55
  • @Team, I know you know about it! ;-)
    – Arjan
    Commented Nov 13, 2011 at 10:53

1 Answer 1

16

Just in time for Christmas we went on a cooking spree and baked up fresh post bodies for any post that had a reference to the new new image host in the revision history and had not yet been updated on the main post body.

Mmmm - delicious post bodies.

1
  • 3
    That's what she said. Commented Dec 23, 2011 at 19:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .