Skip to content
This repository was archived by the owner on Oct 5, 2018. It is now read-only.

Making a touch on updated_at after attachment is processed#217

Open
ErvalhouS wants to merge 2 commits intojrgifford:masterfrom
ErvalhouS:master
Open

Making a touch on updated_at after attachment is processed#217
ErvalhouS wants to merge 2 commits intojrgifford:masterfrom
ErvalhouS:master

Conversation

@ErvalhouS
Copy link
Copy Markdown

@ErvalhouS ErvalhouS commented Jun 15, 2018

This will update the #{name}_updated_at field after processing the file.

By doing so it will enable people who uses CDNs to expire 404 errors caused by caching an access to the attachment url before the processing has finished.

WHY?

This is necessary because most CDN's configuration takes the query strings into consideration for caching, which changes when #{name}_updated_at changes. Changing query string will invalidate previous errors caused by not using a default "missing file" url.

@jrgifford

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant