Delivery media URLs carry no version, so replaced images stay cached for a day

Open
#3,278 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp

Research direction

Start in MediaService.cs at lines 669–672 and 793, then read MediaEndpoints.cs at lines 163 and 196 to trace how delivery and preset URLs are built and cached. Check how management URLs use the checksum and how transform canonical strings are formed. Done means replacing an asset changes every delivery and preset URL; the optional cache-tag proposal is outside the stated acceptance criterion.

Written by the indexing model from the issue text.

Description

plugin type:bug

Problem

Management media URLs carry v from the checksum so a replace gives a new URL, but delivery originals (MediaService.cs:793) and preset URLs (:669-672) do not, and they are served with public, max-age=86400 (MediaEndpoints.cs:163,196). A replaced, privatised or deleted image is served from browsers and CDNs for up to a day.

Proposal

Add v= from the checksum to delivery and preset URLs (and to the transform canonical string); optionally emit cache-tag headers so an event can purge a CDN.

Acceptance

  • A replace changes every delivery and preset URL of the asset

Found in the code review of 17 Nov 2026 (B7).

Dominant language
C#
Stars
569
Forks
107
Avg merge
2h 49m
Merged PRs (30d)
397

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fluentcms/FluentCMS

All issues in fluentcms/FluentCMS

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.