SaaS CMS has officially launched! Learn more now.

Is "Update modified date" not enabled by default really the preferred scenario?

Vote:
 

Could someone please state an argument why EPiServer by default shouldn't update modifed date on content, when either updating content or for instance replacing a image under Media.

Especially regarding image replacement I just cannot imagine why someone would never have the modified date updated. If the modified date isn't update, you cannot force browsers to fetch the new image instead of from local cache.

I really like this tooltip taken from EPiServer CMS userguides (online)
"When replacing images, the changes may not be immediately visible due to website caching. Refresh the page to see the changes."

I do know how to fix this (multiple solutions) ... so no need to propose any solutions. Just wanna know why ...

#151441
Jul 21, 2016 17:01
Vote:
 

If you want to display a date when the editor has saved new conentent you can use the Saved Date instead. By not automatically update the Changed Date the editor can make minor changes without the date getting updated.

#151448
Jul 21, 2016 19:56
Vote:
 

Yeah but that does not force the browser to refresh content, only Modified date will.

#151451
Jul 22, 2016 9:01
Vote:
 

This has nothing (well not completely true) to do with the modified date sent in the http headers. You can control these headers by yourself, one way is to replace the static file handler and rely on etags instead. But I would instead generate unique names for every file version (we do this for every image in our solutions) so you can have a far future expire date, like a year or so. So when an editor updates an image it gets a new url in the templates.

You can also disable client cache or set it really low. Which has nothing to do with Episerver really, that's more an IIS setting.

#151840
Aug 08, 2016 15:20
Vote:
 

Still why would you need to "replace the static file handler and rely on etags instead" when EPiServer should just leave the checkbox "Update modfied date" checked by default (which is my preferred solution through a published event). No solution is more simple than that.

Newbie EPiServer developers shouldn't need to worry about this ... imo bad design decision, and I still haven't  seen any good argument why modified date isn't updated by default. I know someone might want a modified date manually updated in specific scenarioes for frontend purposes ... but one could always add a date property for that.

And on a side note ... it is fine that you use unique names for each file version, but then the image will not get updated automatically where ever it is used. In xhtml or url properties etc.

#152026
Aug 12, 2016 17:42
Vote:
 

I can agree with you on MediaData, that the modified date should automatically update when it's just saved. But for pages I think it works great as it does now. Otherwise saved and modified date would always be the same.

The unique name is of course generated when the page is rendered. Internally a permanent link is used that never changes. This is the most fool-proof solution and always works great with CDN and other proxies.

#152033
Aug 12, 2016 19:54
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.