且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

上次修改日期

更新时间:2023-01-29 19:41:42



" Dennis Marks" <德****** @ none.net>在留言中写道

新闻:020520041251137745%de ****** @ none.net ...

"Dennis Marks" <de******@none.net> wrote in message
news:020520041251137745%de******@none.net...
似乎有一个主要程序自动显示
最后修改日期。使用javascript" document.lastModified"
有时会返回正确的日期,有时会返回1970年1月1日,具体取决于浏览器。

使用SSI LAST_MODIFIED可以返回上次修改日期, ISP系统启动日期或许多其他日期。

我能用于任何
内容的唯一最后修改日期是SSI flastmod命令。

这是一个常见的问题吗?
There seems to be a major program with the automatic display of the
last modified date. Using the javascript "document.lastModified"
sometimes returns the correct date and sometimes 1 Jan 1970 depending
the the browser.

Using SSI LAST_MODIFIED can return the last modified date, ISP system
boot date, or many others.

The only last modified date that I have been able to use with any
consistancy is the SSI flastmod command.

Is this a common problem?




为什么你想在你的网站上看到它?


Don''您希望人们认为您的信息是最新的吗?


如果您的网站正在销售某种东西或是一家餐馆,并且在线提供其菜单

a最后修改后的 ;可能会让人们疑惑这些价格是否最新?或者

从那时起他们涨了吗?"


即使你上次修改网站/页面已经过去2或3个月了

它经常让我思考内容......目前的情况如何?如果

设计师在3个月内没有修改过网站,这是一个很大的修改吗?或者

也许他/她只是在页面底部更新(c)版权?


如果您每天或每两次更新您的网站然后,您的常规

用户将知道您的网站在返回时保持最新状态。如果你是在网站上添加数据(IE:新的图片集,新的新闻文章等)那么

你可能会输入WHATS NEW。

文章/图片/等日期部分



Why would you want that on your site?

Don''t you want people to think your information is current?

If your site is selling something or is a restaurant and has its menu online
a "last modified" could get people wondering "Are these prices current? Or
have they gone up since then?"

Even if its just been 2 or 3 months since you last modified your site/page
it often makes me think about the content... how current is it? If the
designer hasn''t modified the site in 3 months was it a big modification? Or
maybe he/she was just updating the (c)copyright at the bottom of the page?

If you update your site daily or every couple of days then your regular
users will know your site is kept up to date as they come back. If you are
adding data to the site (IE: new picture sets, new news articles, etc) then
you might put in a "WHATS NEW" section with dates on the
articles/pictures/etc


" Dennis Marks" &LT;德****** @ none.net&GT;在消息新闻中写道:020520041251137745%de ****** @ none.net ...

:似乎有一个主要程序自动显示

:最后修改日期。使用javascript" document.lastModified"

:有时会返回正确的日期,有时会返回1970年1月1日,具体取决于

:浏览器。



:使用SSI LAST_MODIFIED可以返回上次修改日期,ISP系统

:启动日期,或许多其他。



LOL!


:我能用于任何

:constancy的唯一最后修改日期是SSI flastmod命令。



:这是一个常见的问题吗?



在浏览器缓存提示的上下文中我不知道如果时间戳

是否正确,我认为这很重要。只要值是一致的就应该没问题。

只有在实际修改文件时才会改变。


也许,浏览器比你更聪明一些需要确保

确保最新的mod时间戳总是比以前的更大。


HTH,


长期
www.webcharm.ca - 综合内容管理网站托管
"Dennis Marks" <de******@none.net> wrote in message news:020520041251137745%de******@none.net...
: There seems to be a major program with the automatic display of the
: last modified date. Using the javascript "document.lastModified"
: sometimes returns the correct date and sometimes 1 Jan 1970 depending
: the the browser.
:
: Using SSI LAST_MODIFIED can return the last modified date, ISP system
: boot date, or many others.
:
LOL!

: The only last modified date that I have been able to use with any
: consistancy is the SSI flastmod command.
:
: Is this a common problem?
:
In context of browser cache hint I don''t think it matters if the timestamp
is correct or not. It should be fine as long as the value is consistent and
only change when the file is actually modified.

Perhaps, browsers are somewhat smarter then you would need to make
sure the most recent mod timestamp is always greater than previous ones.

HTH,

Long
www.webcharm.ca - Integrated content management web hosting


Augustus写道:
Augustus wrote:
为什么你想在你的网站上看到它?

你不想让人们想你的信息是最新的?


我尊重我的用户,希望他们确切知道页面上信息的确切年龄。否则就是虚假陈述。

如果您的网站正在销售某种东西或是一家餐馆,并且在网上有其菜单
最后一次修改。可能会让人们疑惑这些价格是否最新?或者从那时起它们上升了吗?"
Why would you want that on your site?

Don''t you want people to think your information is current?
I respect my users enough to want them to know exactly how old the info
on the page is. To do otherwise is misrepresentation.
If your site is selling something or is a restaurant and has its menu online
a "last modified" could get people wondering "Are these prices current? Or
have they gone up since then?"




这些都是有效和适当的问题,供用户询问

网站。它们也是保持页面更新的好理由,而不是诱骗用户认为它们是。

-

Michael Wilcox, http://mikewilcox.t35.com/