[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [svn] viewing of html files via browser

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-08-31 13:11:45 CEST

On 8/31/07, Mark Reibert <svn@reibert.com> wrote:
> On Fri, 2007-08-31 at 07:55 +0200, Rainer Sokoll wrote:
> > > So, you are saying that as long as the CSS files have the correct mime
> > > type, mod_dav_svn will will render the HTML file with the referenced
> > > CSS? I did not expect that (but I have not tried it either).
> >
> > I would expect that.
> > The Browser issues "GET foo.html". foo.html contains a link to bar.css,
> > therefore the browser has to make an additional "GET bar.css" - and
> > subversion will happily deliver bar.css. As long as both files are
> > delivered with the correct MIME type, the browser will render them.
>
> Hmm, I guess since the HTML <link rel="stylesheet" ... /> tags typically
> contain a type="text/css" attribute, I thought having svn:mime-type on
> the CSS would not matter. But now I am curious!

Some browsers are very particular about it.

Costs nothing to try, right?

Like (I think) I said earlier in the thread, it's so easy to supply a
mime-type and so "cheap", it just makes good sense (IMO) to provide as
much metadata for each file as you can. It'll ensure proper handling,
instead of guessing, on the part of all software that's mime-type
aware. It leaves no ambiguity about the mergeability of the file when
Subversion is working on it, and helps when browsing the repository
via basic HTTP.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 31 13:09:12 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.