problem with favicon.ico and rewrites

24 views
Skip to first unread message

Alexander Gabriel

unread,
Mar 6, 2014, 10:13:15 AM3/6/14
to couc...@googlegroups.com
Hi couchappers

On http://artdaten.ch I have a couchapp.
It uses these rewrite rules:

[
{
"from": "",
"to": "index.html"
},
{
"from": "/favicon.ico",
"to": "/favicon.ico"
},
{
"from": "Artenliste.html",
"to": "Artenliste.html"
},
        <here follow more rules for single pages>
{
"from": "style/*",
"to": "style/*"
},
{
"from": "vendor/*",
"to": "vendor/*"
},
{
"from": "_view/*",
"to": "_view/*"
},
{
"from": "_list/*",
"to": "_list/*"
},
{
"from": "_update/*",
"to": "_update/*"
},
{
"from": "_users/*",
"to": "_users/*"
},
{
"from": "_session/*",
"to": "_session/*"
},
{
"from" : "evab/*",
"to" : "../../*"
},
{
"from" : "evab/",
"to" : "../../"
}
]

(The db and its design file are called "evab")

Looks like everything is working nicely BUT: the favicon is not shown in the browser tabs. It does show on localhost where rewrites are not active.
The link to the favicon is included in all page header:
<link rel="SHORTCUT ICON" href="favicon.ico">

I'm on ubuntu 12.04, couchdb 1.5.

What am I missing?

Help is much appreciated.

Alex

P.S.: Seems like couchapp.org is down


Alexander Gabriel

unread,
Mar 6, 2014, 10:19:12 AM3/6/14
to couc...@googlegroups.com
oh sorry. that is:
{
"from": "favicon.ico",
"to": "favicon.ico"
}

and favicon.ico is in the _attachments folder

Alex

Alexander Gabriel

unread,
Mar 13, 2014, 10:35:32 AM3/13/14
to couc...@googlegroups.com
bump



--
You received this message because you are subscribed to the Google Groups "CouchApp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to couchapp+u...@googlegroups.com.
To post to this group, send email to couc...@googlegroups.com.
Visit this group at http://groups.google.com/group/couchapp.
For more options, visit https://groups.google.com/groups/opt_out.

Ryan Ramage

unread,
Mar 13, 2014, 11:11:14 AM3/13/14
to couc...@googlegroups.com
I usually have very generic rewrite rules. This one size fits me:


The last one being a fallback so you dont have to keep adding rewrites. That should match your favicon.


For more options, visit https://groups.google.com/d/optout.

Alexander Gabriel

unread,
Mar 13, 2014, 12:04:55 PM3/13/14
to couc...@googlegroups.com
thanks a lot! that is much simpler

I just realized that my rewrites actually DO work.
Maybe not showing the favicon hat something to do with caching in the browser

Alex

Nils Breunese

unread,
Mar 13, 2014, 12:33:59 PM3/13/14
to couc...@googlegroups.com
Alexander Gabriel wrote:

> Maybe not showing the favicon hat something to do with caching in the browser

Browsers cache favicons pretty notoriously sometimes. I recently just deleted my browser's favicon cache to make a new favicon for my site show up in the browser tab. As a test without a client-side cache I usually run 'curl -i <url>'.

Nils.
Reply all
Reply to author
Forward
0 new messages