Caching of href with PHP helper class 'Theme'

Post Reply
jonathanholvey
Ssr. Bludit
Posts: 23
Joined: Mon May 22, 2017 10:15 pm

When developing a website, I will set up a virtual host in Apache on my development machine, with the subdomain local.example.com. This allows me to simulate as closely as possible the production environment. I also register develop.example.com with the DNS server on my local network so I can easily test with other devices. The upshot of this is that I'm serving a single Bludit install from two different subdomains.

I've noticed that when using the Theme helper class to insert external CSS and JavaScript references into my HTML (example below), the href value is cached, and the local.example.com address is always used (presumably the first one I visited), even when accessing the site via develop.example.com. The result of this is that when viewing the site on my phone for example, the CSS and JavaScript files aren't loaded, as local.example.com doesn't exist for that device.

Is the href URL cached intentionally, and can it be disabled?

Code: Select all

<?php Theme::css("main.css") ?>
Cheers,
Jon
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

There is no chaching by Bludit. It seems there is one by the server.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Yes check your webserver or your browser.
Post Reply