WPChill / download-monitor

A WordPress plugin which provides an intuitive UI for uploading and managing downloadable files (including support for multiple versions), inserting download links into posts & logging downloads.
http://wordpress.org/extend/plugins/download-monitor/
255 stars 116 forks source link

Document the usage of tsmtv params + maybe add a filter to disable? #1391

Open cristianraiber opened 6 months ago

razvanaldea89 commented 6 months ago

There is a filter for that, going to show usage below:

add_filter( 'dlm_timestamp_link', '__return_false' );

This way the tmstv param won't be added.

As for usage, it is used to prevent caching of link response made by caching plugins or hosts. When caching the result of the link it may end up with unwanted behavior like no having access to the file even though prior to the request you have unlocked the Download ( in case the Download was locked by an extension ). Another problem might come if you change the file/ add new version and the response is cached, the user will be served another file in some cases.