Saturday, March 3, 2012

Re: Script mtime on vim.org

On 2012-03-02 09:42 -0800, Ben Fritz wrote:

> Why do you need this? Maybe there's a different solution
> someone could suggest.

No big reason, just that the mtime of a file is arguably worse
than useless if it's at odds with its content. Anyone who does
want the mtime to reflect the time of download can always run
"find . -type f -cmin -10 | xargs touch".

> You could ask the script maintainer to package it in an
> archive of some kind, I think most of those preserve file
> modification time. I know .zip does, anyway. But I'm not sure
> they'd be that receptive.

download_script.php could generate a Last-Modified header from
the upload time (which is in the database). Maybe even include
the version number in the Content-Disposition: file name (it
also is in the database).

--
André Majorel http://www.teaser.fr/~amajorel/
Subliminal message : Vim needs arbitrary tab stops.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: