Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to get rid of cached CSS?

    I'm using the excellent bookmark bubble add-in on a particular page of my site. It works fine - just involves adding links to a couple of Javascript files and a css file.

    This site then has links to other pages. These pages also work fine when loaded individually, i.e. by typing the address in the browser.

    However, when I go to one of these other pages by clicking on the link in my bookmark bubble-enabled page, it seems that the bookmark bubble's CSS styles are still applied to anything which I don't have explicit styles for.

    If I hit the refresh button, it all goes back to looking fine.

    I've found various suggestions for forcing reload of CSS which has changed, but I don't want to reload it (in this case, what's wanted is the absolute bog standard styling for a select).

    As this is intended for mobile devices, I'm reluctant to force "do not cache" on the whole page.

    Any suggestions for the best way to proceed? I can restyle the selects myself in my own CSS, but that seems like overkill since I don't think there's a way to say "everything: default".

    I see the same issue in IE and Firefox, and whether the page which has the CSS file in it is html or php. (The called page is always php).

    I think what I'm basically asking is "how do I make
    <a href="mynewpage.php"> behave like typing mynewpage.php into the browser address bar?"

    Many thanks for any insight!

  • #2
    Regular Coder hdewantara's Avatar
    Join Date
    Aug 2009
    Location
    Jakarta, Indonesia.
    Posts
    330
    Thanks
    9
    Thanked 50 Times in 49 Posts
    Did you mean something like below?
    Code:
    <a href="mynewpage.php?t=12345">

  • #3
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So, give it an argument, any argument, to make it think it has to reload?

    I'm not on the appropriate machine at the moment, but I'll give it a try. Many thanks!

  • #4
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sadly, it doesn't work

    I've resorted to opening the new page in a new tab - which works exactly as I'd expect.

  • #5
    Regular Coder hdewantara's Avatar
    Join Date
    Aug 2009
    Location
    Jakarta, Indonesia.
    Posts
    330
    Thanks
    9
    Thanked 50 Times in 49 Posts
    Alright
    It's odd to know that it didn't work with that classic random-argument trick though


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •