Loading...
 
Skip to main content

Development


You are viewing a reply to 1.9.2 favicon preference

Re: 1.9.2 favicon preference

posts: 2881 ☆ ☆ ☆ ☆ ☆ United Kingdom

The favicon is cached locally on the browser and in some cases proves extremely hard to get the browser to update it once you've changed the admin section.

You really need to change the admin section to update to your own image, it must be relative to the siteroot and not on another domain. Then clear your browsers cache. Refresh or reload the website and you should have the new favicon.

Damian

posts: 21 ☆ ☆ ☆ United States

> The favicon is cached locally on the browser and in some cases proves extremely hard to get the browser to update it once you've changed the admin section.
>
> You really need to change the admin section to update to your own image, it must be relative to the siteroot and not on another domain. Then clear your browsers cache. Refresh or reload the website and you should have the new favicon.
>
> Damian
>

Certainly, there are multiple caches that are in effect: local browser's, Tikiwiki's stored under "temp," and possibly the ISP's. Any Wiki page change must either be timed-out by all the caches, or at least both the local browser's cache and Tikiwiki's cache must both be manually cleared. In the case of the local browser, it might also require a program close and restart. However, after ensuring that you are not working with cached data, inspecting the text of the source (php/html/xhtml code) for each page generated by Tikiwiki will enable you to confirm which of your actions, if any, have caused a change in behavior by Tikiwiki.

It the case of managing the favicon preference via the "Administration: General" -> "Other" section, there simply is no change in the ouput HTTP data. Again, that is because while "tiki-admin_include_general.php" modifies the `tiki_preferences` database table preference definitions "favicon" and "favicon_type":

Image
Copy to clipboard
[LINE 190] $smarty->assign("favicon", $tikilib->get_preference("favicon", 'favicon.png')); [LINE 191] $smarty->assign("favicon_type", $tikilib->get_preference("favicon_type", 'image/png'));
"favicon" and "favicon_type" are different from (not equal to) "site_favicon" and "site_favicon_type". That is important because "tiki_setup.php" queries for those latter preference definitions when processing output to HTTP. Thus, using the "Administration: General" -> "Other" section within the Tikiwiki 1.9.2 release to modify the "Favicon icon file name:" and "Favicon icon MIME type:" options will never result in changing the output to HTTP to your new preference from the http value of: Image
Copy to clipboard
<link rel="icon" http="favicon.png">