Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Core development
  3. » r2982

#1 2008-10-04 12:55:25

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

r2982

I understand what it’s doing but can someone enlighten me on why please?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#2 2008-10-04 18:41:45

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: r2982

As I understand it a request for a non-existent favicon will now return a normal 404 error generated by the webserver itself. This avoids needless execution of Textpattern to attempt to serve that file, so it reduces server load.

Offline

#3 2008-10-04 18:46:19

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: r2982

Now why didn’t I think of that? ;)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#4 2008-10-05 08:51:43

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: r2982

Doesn’t the rewrite method in Textpattern cause 404 for every missing graphic? Even CSS images?

Would this help?

# TXP 404 page for missing pages
ErrorDocument 404 /404-error/

# Simple 404 for missing files
<FilesMatch "(\.jpe?g|gif|png|bmp|ico)$">
  ErrorDocument 404 "File Not Found"
</FilesMatch>

Last edited by FireFusion (2008-10-05 09:12:15)

Offline

#5 2008-10-05 11:39:45

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: r2982

This would break if you upload an image on the files tab.
I think missing images (that are used in your design) is something that you should fix, not work around, while a favicon is still something a lot of websites don’t have, but browsers do keep looking for it.

Offline

#6 2008-11-18 13:09:51

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: r2982

The effect of Textpattern-powered sites which lack a favicon is even more widespread: As the error_default page template, which will be served from many sites as a response for an inexistant /favicon.ico, contains a link to textpattern.com, our referrer log here gets littered with readahead browsers, spiders and bots travelling along that route.

Offline

  1. Index
  2. » Core development
  3. » r2982

Board footer

Powered by FluxBB