Cache-control settings
hi
On cisco css11506, I trid to find how to configure cache-control for a vip, currently I do not configure anything on header. what is default for cache-control settings?
Any comments will be appreciated
Thanks in advance
julxu
Sorry for the misleading, actually, my client want insert
it into a https side which resident on my css11506.
so, it is two questions:
1. the server set cache-control to private, on client set it sill is no-cache, is css11506 change it?
2. if so, how do I corrected? how do I force cache-control to set private?
Any comments will be appreciated
Thanks in advance
julxu
Similar Messages
-
Specific CACHE-CONTROL abilities?
This may be more of an actual server setting, but I thought I
would check and see if anyone came up with a way to do this through
straight CF coding.
On sites that require time-sensitive updates, we always use
the CFHEADER and CACHE-CONTROL settings ... it works very well, but
I am hoping to make this even more dynamic.
When you use cache-control in its default format, it causes
EVERYTHING on the page to not be cached and therefore reloaded.
What I am wondering is if there is a way to code CACHE-CONTROL so
it will still allow images to be cached, but not the actual HTML
page code. Reloading images all the time is not always necessary
and it would be nice to save bandwidth wherever possible.
Since caching is done by the browser, I am surprised there is
no way to specify what objects can be cached and what cannot with
these tags; so I am hoping I am just overlooking something.
Thanks in Advance.
IIS6:Win2003:CFMX7This isn't really an answer, but you could try looking into
serving the images from a different domain and setting cache
headers on the web server, then for the page set different cache
headers that expire immediately. Untested, Untried and just
throwing it out there.
ie
http://images.mydomain.com
http://www.mydomain.com
I get the idea from Yahoo's YSlow plug in for firefox which
rates the page, and one of the ratings is for CDN (Content Delivery
Network), try googling that.
Sorry can't be of any more specific help. -
JRE Cache ignores the "Expire" and "Cache-Control: no-cache" directives.
My applet is using HttpURLConection to retrieve data from a server with Caching enabled. The cache contents are "revalidated" (via "if-modfied-since") each time the applet is started. However, subsequent requests to retrieve the same resource are always read from the cache with no validation even if the resource has expired.
The server is sending a valid "Expires:" tag and "Cache-Control: no-cache" tag in the response; but, the JRE refuses to recheck for an updated version of the resource even after the file has expired.
The JRE does seem to understand the "Cache-Control: no-store" tag; but, this is inefficient (no caching at all) when I'm tring to get it to not refetch the resource unless there's a change. Is there some other tag that the JRE is expecting to see?I have a similar problem except that I want my pages to not cache at all. The server is setting the Cache-Control: max-age to 0 and the Expires to "now" but JRE seems to ignore these settings, but only sometimes. Sometimes pages are fetched from cache and sometimes from the server.
In my applet I'm using a normal URLConnection like this:
URLConnection uc = new URL("http://<server>/method").openConnection();
uc.connect();
InputStream is = uc.getInputStream();
is.read();When my request headers look like this:
accept-encoding: gzip
Host: <server>
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_13
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alivethe page will not be cached and is requested again but this time without the accept-encoding, Pragma and Cache-Control. The adding (and removal) of the headers seems to happen inside the JRE, though. I'm not explicitly setting them.
The response header of the first request looks like this:
HTTP/1.1 200 OK
Date: Wed, 20 May 2009 12:55:07 GMT
Server: Apache/2.2.11 (Win32) mod_jk/1.2.26 PHP/5.2.8
Cache-Control: max-age=0
Expires: Wed, 20 May 2009 12:55:07 GMT
Vary: User-Agent,Accept-Encoding
Content-Encoding: gzip
Keep-Alive: timeout=120, max=79
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html;charset=iso-8859-1When the request is made with this header:
User-Agent: Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_13
Host: <server>
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-aliveThe response headers looks like this:
HTTP/1.1 200 OK
Date: Wed, 20 May 2009 12:55:07 GMT
Server: Apache/2.2.11 (Win32) mod_jk/1.2.26 PHP/5.2.8
Content-Length: 1016
Cache-Control: max-age=0
Expires: Wed, 20 May 2009 12:55:07 GMT
Vary: User-Agent,Accept-Encoding
Keep-Alive: timeout=120, max=83
Connection: Keep-Alive
Content-Type: text/html;charset=iso-8859-1And in this case the JRE sometimes fetches the request from the server and sometimes from cache. I have not been able to determine how the JRE decides to refresh, or why it sometimes sends an accept-encoding and Pragma header and sometimes not.
any help would be appreciated.
Alex -
Prolem with Cache-Control:max-age http header
Hello
It seems that safari do not take into account Cache-Control:max-age=31536000 http header.
Sending this header to the browser I would expect that safari will not ask the server for these resources before current date + one year.
It's the way IE and FireFox are working but safari is asking the server for these resources every time my html page is loaded (see http requests below).
Server returns a 304 status to indicate that the resource is not modified.
Does somebody have an idea about this strange behaviour?
I'm surprise that Safari do not respect RFC specifications.
Is there a settings to enable Cache-Control ?
Perhaps I forgot safari's specific headers..
Thanks
+GET 786+
GET /xtend/htmrsrc/LIB/XtendAjaxScripts.js HTTP/1.1
+RESP 786+
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Last-Modified: Wed, 15 Oct 2008 13:25:24 GMT
*Cache-Control: PUBLIC, max-age=31536000, must-revalidate*
*Expires: Thu, 05 Nov 2009 13:09:10 GMT*
Content-Type: application/x-javascript;utf-8
Content-Length: 2856
Date: Wed, 05 Nov 2008 13:09:10 GMT
+GET 799+
GET /xtend/htmrsrc/LIB/XtendAjax.js HTTP/1.1
If-Modified-Since: Fri, 24 Oct 2008 07:59:24 GMT
+RESP 799+
HTTP/1.1 304 Not modifed
Server: Apache-Coyote/1.1
Date: Wed, 05 Nov 2008 13:11:19 GMTThis is a User to User forum, not a developer forum. You need to avail yourself of developer resources for this problem instead of posting them here.
Mulder -
Is there a fix to the parental control problem – in Mountain lion? I've been unable to change any control settings for months...should have kept the family PC...this IMAC is garbage at this point.
Although one would think that re-creating the index could fix this problem, that’s not the case. What sometimes works is restarting the computer or doing some cache-cleaning — don’t ask me why, and I don’t know how to fix the problem when that doesn’t work either.
You may also want to take a look at the following thread, where another user reported the problem in his/her case was related to a difference in how the email address was written:
Error - "... unable to find your response..." -
We had very typical problem in our web application.
We are using Oracle AppServer 10.1.2. on Sun Solaris with Web-Cache Enabled.
When we are trying to access the pages the response object contains multiple Cache-Control headers, though we have not explicitly added through our code. Can any one tell me how to delete the response headers through code or at server settings. I have tried with "reset()" but of no use.
Because of this cache problem we are not able to generate the reports but the same it working with Firefox browser.
Thanks in advance.
KishoreIt's unfortunate that JSPs running in WebLogic can't override the default Cache-Control directives in Web Server. That's probably a bug in the WebLogic plugin. (It is possible for JSPs running directly on Web Server to override the default Cache-Control directives.)
As with any obj.conf directive, you can configure Cache-Control directives on a path-by-path basis. For example, the following would set Cache-Control: no-cache for /foo/*.jsp and Cache-Control: private for all other URIs:<Object ppath="/foo/*.jsp">
PathCheck fn="set-cache-control" control="no-cache"
</Object>
<Object name="default">
PathCheck fn="set-cache-control" control="private"
</Object>Information on obj.conf syntax, including how to configure separate objects for separate paths, can be found in the Syntax and use of obj.conf chapter of the NSAPI Programmer's Guide at http://docs.sun.com/source/817-6252/npgobjcn.html.
I'm not sure what you mean by "what are the services handled by the web server and the the app-server and how they interact with each other". However, it's worth noting that Sun ONE Web Server 6.1 is fully capable of running JSPs by itself; there's no need for a separate WebLogic server. -
I don't really know if this is a Tomcat problem or a jsp problem... I have some java server pages with form components and when I hit the back button in a browser, the contents of a form disappear. I checked the response header with a perl script and it seems that there's always Cache-Control: no-cache and Pragma: No-cache in the header. I didn't put them there. I've tried to put some lines as
response.setHeader("Cache-Control","max-age=3600");
response.setHeader("Pragma","max-age=3600");
response.addHeader("Cache-Control","max-age=3600");
response.addHeader("Pragma","max-age=3600");
into my jsp, but they have no effect. I've tried disabling all filters, no effect. I've done a full text search on the whole tomcat directory tree with keywords like no-cache, cache-control and those words don't appear anywhere (but in my jsp). I suspected that apache could mess things up, but browsing the jsp's directly from tomcat (through port 8080) does the same.
Running out of ideas... Do you have any?
-MarkoIt's neither. It's a browser problem... and perhaps your assumption that the browser has to remember what was in the form fields when you go back. Cache control has to do with caching the page, not form input anyway. I've never seen any header settings which tell instruct a browser what to do with form data after the form is submitted.
You could provide a back button on the form and have the JSP fill in the default values based on what's stored in the session, if you are storing it in the session. But if it's not a multipage form, there usually is no reason to be "going back" anyway, because the form is submitted and whatever's done with that data should be done by that point.
Tomcat could be defining default headers for anything in some config file. -
Cache-control on IPlanet 6.0 SP5 doesn't work
Hi.
I am desperately trying to set cache-control max-age=0/no-cache to every file that is sent by the IPlanet from a special directory. I used the web console to set /dir/* to no-cache or max-age=0 but althoug the settings are applied and the server is restarted the HTTP header is still not touched in any way.
I read to changes of SP6 and SP7 but couldn't find anything regarding this problem so I haven't upgraded yet.
obj.conf says:
<Object ppath="/var/apps/weblogic/myserver/public_html/mydir/*">
PathCheck fn="set-cache-control" control="no-cache"
</Object>
This is placed directly after the default object.
Any help is highly appreciated. Thanks a lot,
ThomasThere's a big difference between the set-cache-control SAF and the HttpServletResponse.addHeader API. set-cache-control understands the HTTP protocol version in use and, if that version supports Cache-control header fields, adds a Cache-control header. HttpServletResponse.addResponse blindly adds any header you specify.
If you want to use HttpServletResponse.addHeader to add a Cache-control header to a response in Web Server, you can do so. The meaning of that header isn't defined by the HTTP/1.0 protocol, however. -
I'm becoming confused by the settings for caching wiki pages and their elements.
Using the develop menu and Network Timeline window in safari I can follow the downloading of images, css, js files etc.
I recognise that the wiki page itself is set not to cache for obvious reasons of maintaining up-to-date copies of a page, but the other elements seem to sometimes be cached by my browser and at other times (i.e. currently) resolutely not cached.
The network timeline (currently) says that all the others files have their cache-control set to max-age = 0. Hence it is not surprising that my browser repeatedly downloads the files.
O.K. So the question is;
What sets this value? Presumably the wiki server ( although possibly my browser), but on what basis, how and can it be changed?
When I first started looking at this issue, a few weeks ago, I managed to arrive at a situation where almost all 'elements' were being successfully cached and page downloads were under 2 seconds. Currently It's up to over 6 seconds. I don't know if, or how, I've changed anything.
Can anyone offer any guidance or direction as to where I can find out more about how these settings are achieved?
Ta.I realise that it is the weekend but although this post has prompted a reasonable number of views no responses, so I will offer a little more information about the situation in the hope of eliciting some advice...
I have edited the httpd_teams.config file to include the line
Header set Cache-Control "max-age=600001, private, must-revalidate"
and restarted Apache.
I then clear the cache in Safari, quit and restart.
On re-entering the URL of the wiki it loads a page in approximately 7 seconds. On inspecting the request and response header of one of the .css files, for example, the request makes no reference to cache-control but the response, correctly, contains the cache-control statement as set above.
However, when I navigate to another locaction and then return to the page the .css request contains max-age=0, ( with the response still correctly set).
WHY?
Just to make matters 'worse', some other files, particularly .png files for some reason, correctly retain the set max-age and use the cache as I intended.
Clearly, I am missing something. Does anyone have the slightest idea what or how to go about working it out? -
STO Process Copy control settings
Dear Gurus,
I am having issues with item number in purchase order and delivery document. I require the same item numbers in purchase order to be copied to delivery document. I think i got to do something with copy control settings. Please help me. I am confused since its an STO process.
Thanks in advanceHi George,
Here customization can be done as follows:
Step 1: SPRO --> MM --> Purchasing --> PO --> Set up STO
In this step the customer number and sales area is assigned to Supplying & Delivering plants.
Step 2: SPRO --> Logistics Execution --> Shipping --> Delivery --> Copy control --> Specify Copy control for Deliveries
Check the settings made for DL to NL (STO) and DL to NLCC (Cross company) copy control settings.
Step 3: T.Code OVLK
The Delivery document types NL and NLCC needs to be assigned with "B" in the order required field. Thus, the system understands the data for delivery document has to be copied from Purchase order.
Thanks & Regards,
Sharan -
Hi all,
I work on a web application that, among others, generates Pdf documents. It renders them directly within the IE window by "streaming" the content of the Pdf in the response output stream. Note that we also add the header "Cache-Control", "no-store, no-cache, must-revalidate,post-check=0, pre-check=0" to the response.
Everything was fine with previous version of reader but since I installed Adobe reader X the content of the Pdf is not showing any more in my browser.
Here is what I already investigated:
- if I use another machine with an "older" Reader version, it works. If I save the displayed Pdf and try to open it on the machine where X is installed it works
- if I remove the the Cache-Control header, then it works with reader X installation
Do you have any idea what changed between version 9 and X that could lead to this issue ?
To ease diagnostic I created a sandbox environment to reproduce the problem, you can go to the following address to see what's happening (or not in case you have version X installed)
With the Cache-Control header: http://readerxissue.appspot.com
Without the Cache-Control header: http://readerxissue.appspot.com/enableCache.html
I must confess that I am a bit stuck and I wonder if some of you could help.
Thanks a lot
Regards
VincentHello,
We have semiliar problems in sweden with Adobe Reader X 10.1 Swe and Internet Explorer 8.0 with streamed PDF files.
We had some issues and got them resolved by the following
Upgraded to Adobe Reader 10.1.2.45 Eng
- Print Issue:http://helpx.adobe.com/acrobat/kb/pdf-wont-print-reader-10.html
- Grey box in Internet explorer: http://helpx.adobe.com/acrobat/kb/pdf-opens-grey-screen-browser.html
- Add site as trusted: Edit-> Preferences, unbox Enable Enhanced Security + add the host/url to site that is whitelisted to send pdf files
(the Automaticly trust sites from mu Win OS security zones doesnt work for us)
The thing is we run MUI pack on our Citrix servers and want Adobe Reader in Swe but it havent been translated yet...
So we have to wait for the swedish release on Adobe Reader X 10.1.2
Thanks,
Tony Van Der Haagen
IT-Mästaren
Sweden -
"Table Name" in customizing SUS:"make field control settings for tables"?
Hi Gurus,
In the following customizing node, I can find the table name such as :
ORDER.DET.EDIT
+ ORDER.DET.VIEW+
+ ORDER.HISTORY.DETAIL+
+ ORDER.ITEM.EDITH+
+ ORDER.ITEM.EDITL+
+ ORDER.ITEM.EDITL.WO.OR+
+ ORDER.ITEM.EDITM+
+ ORDER.ITEM.EDITM.WO.OR+
+ ORDER.ITEM.EDITS+
+ ORDER.ITEM.EDITS.WO.OR+
+ ORDER.ITEM.VIEWH+
+ ORDER.ITEM.VIEWL+
+ ORDER.ITEM.VIEWL.WO.OR+
+ ORDER.ITEM.VIEWM+
+ ORDER.ITEM.VIEWM.WO.OR+
+ ORDER.ITEM.VIEWS+
+ ORDER.ITEM.VIEWS.WO.OR+
+ ORDER.LIST+
+ ORDER.SDLN.EDIT+
+ ORDER.SDLN.VIEW+
It's difficult to know the difference for these so-called "table name"...
"SAP implementaion --> supplier relationship management --> supplier self-service --> settings for user interface --> make field control settings for tables"+
What's actual meaning for these table names? Where can I find related document and actual corresponding transparent tables for these so-called talbes?
Thanks and best regards
JackHi Neelima,
Thanks a lot.
Checked the SAP note, but I could not find corresponding infomation about that, kindly please advise again.
Best regards
jack -
Has anyone created a cache control for Workshop?
I'm wanting to cach the results of a complex report by using the xbean. Then if the request parameters match an already generated report, I simply send back out a pregenerated xbean.
The cache would need a time expiration and max size handling.
Thanks,
Rodger Ball
Sr. Software Architect
Business Wire.If you have the option to use WLP, you can access the com.bea.p13n.cache APIs to write a Control that uses the portal cache functionality, which includes:
* time-to-live (LRU removal), max size configuration
* JMX based administration, including built-in admin from adminPortal and Workshop.
* cluster aware flushing.
Of course, if you can't or don't want to include portal, that won't work for you :)
Greg
Has anyone created a cache control for Workshop?
I'm wanting to cach the results of a complex report
by using the xbean. Then if the request parameters
match an already generated report, I simply send back
out a pregenerated xbean.
The cache would need a time expiration and max size
handling.
Thanks,
Rodger Ball
Sr. Software Architect
Business Wire. -
Copy control settings for Multilevel variant configuration
Dear All,
I have the following scenario for variant configuration A quotation is created for configurable material with multilevel configurable material
with reference to this quoatation a sales order is created.
My requirement is that the quoatation must get copied to sales order as it is along with the values for subitems also.
In copy control settings there is a field at item level called
configuration :
In this if I maintain value
A: The variant is getting copied but the values for subitems is not getting copied the values for main material is in changable mode.
B: The variant is getting copied but the values for subitems is not getting copied the values for main material are not in changable mode.
C:The variant is getting copied the values for subitems is getting copied the values for main material are in changable mode but the values for subitems are not in changable mode.
My requiremnt is that
The variant must get copied
the values for subitems must get copied
the main material vlaues must be in changable mode
the subitems vlaues must be in changable mode
How can I fullfill this requiremnt, has any one of you come across this scenario, Pleae provide with solution it is urgent
Informative answers will be provided maximum points.
DeepakHai Deepak Mehmi,
please check in T CODE VTAA
In the position check
SalesDocType : Sales order type
SalesDocType : Inquiry type
Double clcik and check
DataT 051 General header data Copying requirements 002 Header-diff.customer
DataT 101 Header business data
DataT 001 Partner header
And Tick mark for Copy Item Number
For further check:
In Item
Copying requirements 301
DataT 151 General item data Pos./neg. quantity +
Copy quantity
DataT 102 Bus.data/item compl. Pricing type G
DataT 002 Partner item 2 Update document flow Cont. item copy mode
Copy product select.
FPLA 251 Conditions Configuration
Campaign Deter.
Regards,
Mani -
Copy control Settings from a Quotaion to Value contract/Quantity Contract
Hello Friends,
I would like to know whether it is possible to create a Value/Quantity contract in R3 with reference to a Quotation,Currently I am not able to see the copy control settings between quotation and Value/Quantity ,Also it help me a lot if you can provide me the copy control settings -Header and Item level
Thanks and Regards
Mohammed Roshanif you run VTAA you would try to create a copy control as follows:
source: QT (quotation)
target: CQ (quantity contract)
say, take the existing record QT->AA (just an example) highlight it and hit 'Copy As'. Type 'CQ' in Target SalesDocTyp field.
hit Enter. Hit 'copy all'. (if you get a message regarding the "-" or "+" quantityt set this field blank (empty)
save it and test.
good luck!
Maybe you are looking for
-
Acrobat Distiller 9 Error - Cannot Print PDF
When I try to print PDFs from any browser or piece of software, try to open Distiller directly, or even scan to PDFs, I receive the following error: Unable to create the temporary folder. Error: 5 - Access is denied. I have had no problems until Mond
-
How do I change alphabetical element listing in xml to nested xml using xslt?
Have an 'Bus Card Request' indd form exported to fillable form pdf (reader enabled etc). Have 'Bus Card Template' indd to receive the BC data from the returned filled pdf form. The tags & structure are identical on both indd docs. The xml exported fr
-
Change Bitmap code to MovieClip code?
Hi I'm working on an app for iOS where I want to load content dynamically from the library that contains text and graphics inside different MovieClip's. However, I have a problem, the code I have is for bitmap! How can I change it so it works for Mov
-
How can I batch change all my file names?
-
how can I convert PDF file to XML