Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

From my observation browsers cache css and image files. If changes were made, you need to hit "force" refresh button if you want to see updated version. However I am not able to verify if browsers also cache text content? For example:

If you have a web page with:

<body>
    foo
</body>

A user visits it, then you change it to:

<body>
    bar
</body>

Does the user still need to "force" refresh to see updated text content?

share|improve this question

2 Answers 2

Of course browser cache the html pages, incuding the 'text content'.

Does the user still need to "force" refresh to see updated text content?

The need to force an update completely depends on how your web server is configured. If a client wants to be sure it has the freshest content then forcing an update may be required, but if cache control is configured on the server in a way that is useful, then this shouldn't normally be required.

share|improve this answer

You can verify that browsers cache content by opening Dev Tools in popular browsers (accessible through the F12 keyboard shortcut) & watching the Network (this may have slightly different name in each browser) tab or tools like Fiddler or Firebug to monitor HTTP traffic and see how the page and elements within it load.

If a web page has a HTTP status code of 200 (cache) or 304, it means it is cached.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.