A Cache-Control response directive in the HTTP header
Questions tagged [no-cache]
93 questions
0
votes
1 answer
Where in jBoss when using SSL and JAAS are the Cache-Control and Pragma HTTP headers set?
Implemented JAAS and SSL on jBoss 4.2.2 and found the issue with being unable to download .pdf's. after some poking around I found references to the Pragma: No-cache and Cache-Control: no-cache headers, and why that prevents IE from downloading…

Jim Ward
- 529
- 1
- 4
- 5
0
votes
1 answer
curl -X GET -I -H "Cache-Control: no-cache" does not bypass
I am doing the following
$ curl -X GET -I -H "Cache-Control: no-cache" https:/myserver/myimage.jpg
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Wed, 24 Jun 2015 22:55:31 GMT
Content-Type: image/jpeg
Content-Length: 37502
Connection:…

Gavin Yap
- 642
- 12
- 26
0
votes
0 answers
How to prevent cache with date/hour got from PHP?
I'm showing the date and hour in the website header, this date/hour get from a data base MySQL, these change every time, twice daily. The problem is that it shows an earlier date, i.e., one or two days before in the browser. How to prevent this?.…

Paul Proaño
- 111
- 1
- 11
0
votes
2 answers
Refresh site when accessed a second time
I would like to "force-load" an instance of a page every time it's accessed.
The website in question is a "build your custom product"-kind of site and uses a multi-step form to guide customers through the steps of the product building. The client…

Christopher Richa
- 1,278
- 1
- 9
- 20
0
votes
1 answer
Prevent browser from caching uploading images
After loading page, I want to upload different images to server several times.
Each time I choose image, ajax uploads it to server and then shows on screen.
Problem is that it continues to upload the rest images after I choose them one after…

David
- 4,332
- 13
- 54
- 93
0
votes
1 answer
Force reload images (in img) on back button press
There is a blog where I can post images and links, no scripts. I still want to have dynamic content.
My idea: image that has no-cache etc. headers and is dynamically generated by my own server-side php script. This image links to a page on my…

a966821
- 1
- 1
0
votes
0 answers
Preventing Google App Engine Python pages from caching
all
I know that this question has been answered a zillion times but I am having problems that I thought were solved. I have a localhost test site (gae) it all runs fine except the pages are being cached even though I have explicitly set the python…

Chez
- 961
- 1
- 9
- 20
0
votes
3 answers
Is it possible for PHP to generate a fresh page on every Javascript history.go(-1)?
I have a PHP page (a.php) which is already sending these headers:
And on the PHP page…

hoball
- 3,146
- 5
- 23
- 15
0
votes
1 answer
how to disable web page cache throughout the servlets
To no-cache web page, in the java controller servlet, I did somthing like this in a method:
public ModelAndView home(HttpServletRequest request, HttpServletResponse response) throws Exception {
ModelAndView mav = new…

Kurt Shaw
- 609
- 2
- 10
- 26
0
votes
1 answer
Browser doesn't cache images despite cache header when html is not cached
I'm caching our generated images using the HTTP header "Cache-Control", however, when I don't cache the HTML file (comprising those img tags) using "no-cache" I see further requests sent to the server (as I add, remove, and re-add those tags).…

shex
- 326
- 5
- 13
0
votes
1 answer
How to load nocache.js form html page other than default page?
I m developing a web application using GWT technology.
But i m facing the loading time problem in my application.It take about 1min 30sec to load.
This problem is being faced only when application loaded fist time on any browser.
It is found that…

Piyush Srivastava
- 357
- 1
- 4
- 21
0
votes
0 answers
Automatically fetch fresh PDF document when opening in new window
I know that headers can ensure a page that is fetched is always fresh: How to control web page caching, across all browsers?
But I just need to fetch a PDF in a new window.
I'm using the following code to fetch the PDF, but how can I make sure the…

user961627
- 12,379
- 42
- 136
- 210
0
votes
2 answers
How to verify if caching is disabled (IE7)?
I'm developing an application that utilizes PDFLib to serve my users dynamic PDF files summarizing their accounts and need to ensure that these pages are not being cached (some sensitive data is passed, and I can't have that stored in cache for…

Matt
- 6,993
- 4
- 29
- 50
0
votes
1 answer
How do I keep Tomcat deployed files in a context from caching in a browser?
I am working on a Java/Struts application that uses Tomcat 6.0.10. It's a typical web application that allows users to edit some forms, and streams PDFs. Way back, we added:
…

Paul W Homer
- 2,728
- 1
- 19
- 25
0
votes
1 answer
How do I make WISA act like LAMP (Protecting .mp3s on IIS)
I have created a few small flash widgets that stream .mp3 audio from an Apache/php host. The mp3 file cannot be directly accessed and does not save it self to the browsers cache.
To do this I set the mp3 file permission on the host to "owner:…

ctrlShiftBryan
- 27,092
- 26
- 73
- 78