Quote:
|
Originally Posted by teknomage1
What the heck are you talking about DJMaze? There's no difference a far as the browser is concerned with the dynamic or non dynamic version (once it works). All this happens in the server. This doesn't affect the fact that he doesn't need load of tables to accomplish layout and it doesn't affect the browser's ability to cache the images.
|
Say you write a page in PHP and every time a visitor looks at that page PHP generates a nice HTML document.
Now you write a CSS file so that the HTML page size can be reduced and people will recieve this page, and others, faster and at the same time they don't have to re-download the CSS file again because it's cached.
If you make your CSS dynamic it's pretty useless because it adds a overload to the server because:
- the html page needs to be generated
- the CSS file needs to be generated
To solve this you should send the following header()'s
= Cache-Control
- Date
- Last-Modified
- Expired
and process the recieved header:
- If-Modified-Since
http://www.w3.org/Protocols/rfc2616/....html#sec14.25
Instead of doing all that just skip the dynamic CSS and use <html background="img"> or <div style="background:url()">
This is actualy faster then to have 2 dynamic generators.