Chapter 18. Server-Side Basics

In Part II of this book, we learned how to manipulate SVG with client-side scripts. Even more possibilities are offered with server-side scripting, as we'll learn throughout Part III.

However, before you start serving SVG files from your site, you need to understand MIME types and how browsers use them. You also have to configure your Web server for sending SVG files with the correct MIME type. Finally, we show you how to set the MIME type within server-side scripts with selected scripting languages.

MIME Types

Web servers send files, including SVG files, to requesting clients, which then try to display those files. For the clients, there must be ...

Get SVG Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.