mainSavannah Administration - Support: sr #104549, Support user agents which do not...

 
 

sr #104549: Support user agents which do not accept application/xhtml+xml

Submitter:  Jean-Yves Lefort <jylefort>
Submitted:  Fri 12 Aug 2005 01:14:11 AM UTC
   
 
Category:  Project webpages Priority:  5 - Normal
Severity:  4 - Important Status:  None
Privacy:  Public Assigned to:  Beuc
Operating System:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 13 Aug 2005 07:49:35 PM UTC, comment #1: 

I'm not sure that the right approach wrt performances.
Maybe you could provide .html pages as symlinks to the .xhtml ones. Or you could switch to .html until .xhtml is more widely supported.

Sylvain Beucler <Beuc>
Fri 12 Aug 2005 01:14:11 AM UTC, original submission:  

When serving .xhtml documents from project web pages, could you please support user agents which do not accept the application/xhtml+xml Content-Type?

Example configuration for Apache 1.3.x (needs mod_rewrite):

# serve text/html to browsers not supporting application/xhtml+xml
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} \.xhtml$                                [NC]
RewriteCond %{HTTP_ACCEPT}      !application/xhtml\+xml                 [OR]
RewriteCond %{HTTP_ACCEPT}      application/xhtml\+xml\s*;\s*=0([^.]|$)
RewriteRule .*                  - [T=text/html]

# tells that our content varies depending on the Accept header
Header append Vary Accept

Jean-Yves Lefort <jylefort>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-08-24 Beuc Open/ClosedOpen Closed
2005-08-13 Beuc Assigned toNone Beuc

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code