Forum Moderators: phranque

Message Too Old, No Replies

Is gif extension necessary

Will older browsers have issues?

         

twist

8:51 am on Mar 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I apologize because I know this was brought up before by someone else and I just cant seem to find it.

If you do a rewriterule on the following,

RewriteRule ^image/picture$ /image/picture.gif [L]

Will it show the picture in all browsers or is there an exception? I tested it in recent versions of opera, ff and IE6 without any problems.

Will removing extensions also work for jpg, swf, wmv, mpg and so on?

dmorison

9:26 am on Mar 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Strictly speaking; user-agent's should use the HTTP headers to decide what format something is. A file extension is, after all, only circumstantial evidence.

Therefore, within the confines of a HTTP based session (browser talking to server) you should be OK calling anything what you want - extensions or no extensions - as long as the headers contain the correct content-type information.

twist

9:40 am on Mar 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thank you for clearing that up dmorison.