Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1025129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:52:54+00:00 2026-05-16T11:52:54+00:00

In the iPad project I’m working on I’ve got a UIWebView inside of the

  • 0

In the iPad project I’m working on I’ve got a UIWebView inside of the app which displays a .html file which links to a .css file, i.e.

<link rel="stylesheet" href="style.css" type="text/css">

These files are stored locally on the iPad but are fetched from a remote server. I’ve noticed that UIWebView caches the .css file more or less indefinitely, and refuses to load the new file whenever I change it. I’ve once changed the name of the file just to get it to reset, but that’s unacceptable in the long run.

Is there a way to prevent caching of the CSS file in a UIWebView? Or even better, is there a way to say when to cache and when not to?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:52:55+00:00Added an answer on May 16, 2026 at 11:52 am

    Yes.

    Change your line to this:

    <link rel="stylesheet" href="style.css?version=1" type="text/css">
    

    Every time that you update the stylesheet, change the version. The browser will think that it is a different page because of the query string, and your server will ignore it.

    If you are using a server side language such as PHP, you can also do the following:

    <link rel="stylesheet" href="style.css?version=<?php echo time(); ?>" type="text/css">
    

    This will change the version every time you refresh, thus stopping all caching.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been working on my first iPad based project which has proven a massive
I've built an Xcode project which is an iPad and iPhone app that simply
I'm attempting to create a new iPad project for an app I'm working on,
I have a MVC3 project for running on the iPad in the web-app mode.
I have an iPhone/iPad app which play a HTTP Live Stream of a tv
I developed an app and tested in iPhone and iPad simulators. In the project
My senior project is a web-based storytelling app to be viewed on iPad. The
I have an iPad project I'm working on that dynamically creates a number of
I'am working on a iPad project and this project needs to talk to a
Iam currently working on a iPad project where i build my code on top

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.