Questions tagged [no-cache]

A Cache-Control response directive in the HTTP header

85 questions
1
vote
1 answer

no-cache attribute misunderstanding

I am creating a http client cache, but I have a doubt about the no-cache field. Official documentation says: If the no-cache directive does not specify a field-name, then a cache MUST NOT use the response to satisfy a subsequent request without…
Massimo
  • 3,017
  • 4
  • 33
  • 61
0
votes
1 answer

Why can I navigate to a page via browser's back button though cache = disabled?

I have set in my mastersite of my asp.net application the following that the browser does not cache the pages and the user cannot navigate via back (and forward) buttons; Response.Cache.SetCacheability(HttpCacheability.NoCache) …
Keith L.
  • 1,974
  • 11
  • 38
  • 64
0
votes
1 answer

Creating logout such that no back action takes place in JSP

I want to create a logout action in JSPs such that there is no back action. Presently, I am using session.invalidate method to kill my existing session and directing to login page. But that doesn't prevent the page getting loaded if the user presses…
Prasad
  • 5,365
  • 3
  • 26
  • 35
0
votes
1 answer

Which is better for no-cache pragmas? Setting it in the header or metatags or both?

I'm currently using Zend Framework and for some of the actions in various controllers it has the pragmas set for no-cache. Some of them use metatags for this and others set the headers. Is it better to set it in the headers or in the metatags? Which…
0
votes
1 answer

How can I get the back-button to work with a JSF app with no-cache set?

This is a problem I inherited. We have a JSF/RichFaces/Seam app, which for security reasons has no-cache set. The problem comes when users hit the back-button, causing a repost of a form. Sometimes (and it is inconsistent) the form re-POST after…
0
votes
0 answers

How to create JS file which render without cache

I'm trying to create JS code that will be read by HTML with no-cache. I can't use ?v=1 in this project. I've seen that CodeSandbox somehow enables you to create JS files that you can connect with HTML and you don't need to add any versioning or…
0
votes
0 answers

How to prevent from caching by using an iframe?

I have a file tickets.php with the following code the page is loaded correctly by using no cache But if i…
isd17
  • 5
  • 3
0
votes
1 answer

IIS Internet Information Server no-cache setting in web.config

I am working on Azure Service with IIS; however, I cannot make the web.config works with no-cache. How can I change it for no-cache and overwrite all js scripts?
0
votes
1 answer

NoCaching A Small Part Of My CakePHP Page

I want to employ CakePHP's basic caching functionality on my site's home page. However, there is one element on the page that should display different data depending on the visitor's location, as determined by their IP address. You can't wrap…
thesunneversets
  • 2,508
  • 1
  • 25
  • 44
0
votes
1 answer

Change response cache header for a request

I'm working on a web app that uses an external api where I don't have any control on the response cache options. The endpoint gives cache-control: private, no-cache, no-store, must-revalidate, where I need to make response storable and cachable…
0
votes
1 answer

Google App Engine : default_expiration not overriden by Cache-Control:no-cache

Hello I want to put "One Year" of cache on all files, except ìndex.html that I want Cache-Control: no-cache But I get : I expect the last line to override the default_expiration but i get : cache-control: no-cache cache-control: public,…
marcant0
  • 146
  • 6
0
votes
0 answers

What happens if no-cache when the http response is the same

I add a no-cache header in the response to ensure the browser will only make use of the copy if the response is different. But, all requests hit the MVC action and same response is sent back to the browser. However, I expect a 304 status will be…
Charlie
  • 1,520
  • 1
  • 12
  • 25
0
votes
1 answer

How to add hash strings to custom resources urls in a Bokeh Application?

I am programming a Bokeh Server Application with templates. I have added some custom CSS and JS files. But when I make some changes the files are reloaded from the cache and I cannot see the new changes. One solution is to add a variable at the end…
ChesuCR
  • 8,522
  • 4
  • 37
  • 89
0
votes
1 answer

How to disable image caching in Odoo email?

I'm currently using Odoo 12.0+e-20181025. I have changed the logo for the email but the GMail that has received the previous email refused to show the new logo although the link of the image in the email has pointed to the new logo. I have…
shad12ow
  • 169
  • 6
0
votes
0 answers

html5 audio player with no cache

I want to have a html5 audio player that plays a shoutcast stream with no cache. I've tried the answer given here Link and tried to load the stream with a php file, But it doesn't work for me, what am i doing wrong? So the script i use is…
Jannes
  • 1
  • 4