TOPIC: Font Awesome stopps working sometiems

Font Awesome stopps working sometiems 23 Sep 2015 11:15 #1473

fortawesome.github.io/Font-Awesome/
This is used by many templates today to get lots of icons.

This for some reason stops working sometimes when site is cache by JotCache. Is there anything I can do to exclude this from caching?

Joomla version : 3.4
JotCache version : 5.1.2
site template: Yootheme
system plugins :
The administrator has disabled public write access.

Font Awesome stopps working sometiems 01 Oct 2015 07:38 #1478

No - it is not possible to exclude any font, css, js files from caching.

But if your site can be loaded with different URLs e.g.
http://yourdomain.com, https://yourdomain.com, http://www.yourdomain.com
then browser can refuse loading any asset with error : blocked from loading by cross-origin resource sharing policy.
In such case include into .htaccess file section custom redirects something as :
RewriteCond %{SERVER_PORT} ^443$ [OR]
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{QUERY_STRING} ^format=raw$
RewriteRule ^(.*)$  index.php/$1 [L]
The administrator has disabled public write access.
Time to create page: 0.241 seconds
We have 119 guests and no members online
Copyright © 2015 JotComponents
We have 119 guests and no members online
Copyright © 2017 JotComponents