[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:07:20 CEST

On 8/31/07, Mark Reibert <svn@reibert.com> wrote:
> On Thu, 2007-08-30 at 08:15 -0400, Andy Levy wrote:
> > On 8/30/07, Mike A. <mikealim@gmail.com> wrote:
> > > Thanks for this Mark. Maybe thats what I should do, just inform the user
> > > about the autoprops config. Anyway, just another question, I tried it out in
> > > one of our html file and noticed that css file are not interpreted (results
> > > to html file not displaying properly), is this really the case?
> >
> > Same root cause. Set the svn:mime-type on the CSS files to text/css
> > and it should work. Lather, rinse, repeat for text/javascript (JS
> > files), your images (image/gif, image/png, image/jpeg) and so on.
>
> 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).

mod_dav_svn isn't rendering anything. Your browser is. Mod_dav_svn is
only supplying the file contents to your browser.

Many browsers (correctly) will only use files from a web server the
way you're thinking if they're served with the correct mime-type. If
you set svn:mime-type, that value will be supplied in the HTTP headers
when the browser requests the file.

---------------------------------------------------------------------
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:04:38 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.