INGInious icon indicating copy to clipboard operation
INGInious copied to clipboard

[frontend/task statement] RST directive not displaying the expected image

Open ClemCordier opened this issue 1 year ago • 4 comments

Describe the bug

When inserting an image in the task statement (using RST directive, e.g. .. image:: task_id/img.png), deleting the image file locally and replacing it by another one with the same name, the RST directive is still displaying the old image instead, as if it were cached.

INGInious installation details

  • Version: v.0.8.5

To Reproduce

Steps to reproduce the behavior:

  1. Insert an image inside the public folder of a task.
  2. Use the .. image:: directive to display the image in the task statement.
  3. Delete the image and replace it by another one with the same name.
  4. Refresh the page - the old, deleted image is still showing instead of the newly inserted one.

Expected behavior

The current image stored inside the public folder to be displayed, not the old one that has been deleted locally.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Vivaldi

ClemCordier avatar Apr 03 '23 18:04 ClemCordier