Cache-Control

My website is on a server that places Cache-Control: private in the
Header of the pages that are served. I see these pages are not cached
by Google (the Google Toolbar Cached Snapshop of Page function).
Is this directive from my server preventing Google from caching the
pages that have it or do I need to look into some other problem?
Thanks in advance for your input/feedback.

View Replies


ADVERTISEMENT

Disable Back Button Response.Cache-Control = "no-store"

I'm trying to disable the back button on an asp page I've tried the code below but it does not work. Code:

Response.Cache-Control = "no-store"

View Replies View Related

Form Control; Want A Little More Control Of The Name Attribute

I would like to be able to control an asp text box control's name attribute.

I know i can manually type the whole string
<input type="text" name="username" value="" />

but then i can't use the validation control on the inputs. [free javascript ]

PHP Code:

View Replies View Related

Cache

I'm building a page that displays all phone in phoneview.asp...however from admin section we can add new phone image tht stores path in database.
I wanna use cache object in phoneview.asp..becoz most of the time images r same..
so i just need to store image in cache...but not data..becoz asp page reads all phone list information from database and displays all phones.
so is it possible to store image in cache so it can be served quickly if its in list

View Replies View Related

Way(s) Of Doing Cache

Could someone tell me the way(s) of doing cache in old ASP pages?

What i really wanted was to keep in cache for some time the HTML generated by an ASP page (something like the "@OutputCache" directive of .NET).

View Replies View Related

No Cache

I have an ASP page with the "no cache" command.I know the ASP file is not being cached. But the flash file that is embedded in the ASP page is repeatedly cached by my browser.
Anyone discover a sure-fire method to prevent caching of embedded files?

View Replies View Related

Do Not Cache Image

In my asp code i generate a graph/plot which is saved as a .png file, so saved as an image to the server. The problem is when i revisit the page with different selections, a new image is generated but not shown in the HTML. The previous image is shown which is not desired. So i did some coding to not cache the image, but without succes. Here is some code i tried:

Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","no-cache,must-revalidate"
Response.CacheControl = "no-cache"

<html>
<head>
<meta http-equiv="pragma" content="no-cache">
</head>
</html>

and i used "nosave" in the img tag

<td><img src="linegraph.png" width="<%=xsizewindow%>" height="400" usemap="#map1" border="0" nosave></td>

but all these options without succes......

View Replies View Related

Cache Object

i need to change a variable in my application object in every 5 minutes. Application("test"). how can i do that? can you show me an example code.

View Replies View Related

No Cache - Frames

I have a frameset with 2 different pages. When a user logs in the page is setup based on that particular user. The problem I have comes when that user logs off (killing his/her session) and someone else logs in one of the fr4ames does not always refresh with the new users info.

The user actually has to right click on it and click on refresh. I am killing session with �Session.Abandon� (this seems to be working). I have the following statements at the top of the page that is not refreshing: Code:

Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1

Anyone have any idea why the frame is not updating?

View Replies View Related

Clearing Cache

Is there a way to clear cache using ASP, VBScript or Javascript?

I have created an ASP login page with sessions etc so unregistered members cannot view certain pages, however, when you logout you can still press the back button on the browser toolbar and view the pages, I want to find a way to make those pages expire by clearing the cache or something like that!

View Replies View Related

Clearing Cache With ASP

Does anyone know how to clear a sites cache with ASP. I have a login script that does not terminate the history when signing out. A user can simply click the back button and get back into the site..

View Replies View Related

'cache' An ASP Page

how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations (Although I could be wrong!).

Ive been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.

View Replies View Related

No-cache Vs No-store

what is the diference between these two cache control header.no-cache and no-store.I have read the w3.org explanation.So lets say I am using only no-cache ....my understanding is thatnothing is cached and nothing is writen to disk.but what happens when we use no-store....i think..nothing is written to disk but it could be cached.
Now my question where is this cache located...is it only in memory ?....if it is written to disk how log is it there and when does it gets cleaned.Is no-cache more secure than no-store ..why?

View Replies View Related

'cache' An ASP Page

how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations (Although I could be wrong!).

Ive been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.

View Replies View Related

Cache Problem

I wrote the following code to clear the cache in my asp page.

Code:

Response.Expires=-1
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"

Cache is getting cleared but a new page is coming when i hit the browser's back button. I need to get the page expired warning message of internet explorer. I did some r&d and found that HTTP_CACHE_CONTROL: no-cache header is not getting added to the page. How to add this header to my web page.

View Replies View Related

Clear Out Cache

Is there any way I can clean the cache at the top of each web page so that users cant use the back button in explorer ?

View Replies View Related

Cache Recordset

I have an ASP which performs a simple query pulling data from an Access db. The data will only change about once a month so I reckon it'd be more efficient to cache the recordset in some way. I'm guessing I store it in an application variable but I don't know where to start.

View Replies View Related

Browser Cache

Just pass date as a querystring , even if you do not want it

like www.domain.com?x=date

No browser will ever cache this page because the url will change every second LOL. This comes particularly handy when you are making remote calls using xmlhttp or other means and you require the results to be current.

View Replies View Related

How You Cache A Page?

how you 'cache' an ASP page? I run a football predictions league site and some pages than calculate users points stats and the league table are taking ages to load. I think this is because its making loads of calculations.

I ve been told the best way to solve this problem is to run the ASP page once and then 'cache' it. The page only needs to be run once to perform the calculations so I shouldnt be making it run the calculations on every request, as happens at the moment.

http://www.pool-predictions.co.uk/ho...rs.asp?tab=a_d

View Replies View Related

Possible To Cache The Images On My Pages?

1: Is it possible to cache the images on my pages.....eg...credit card images, header images, logo etc etc, so that thge user doesn't have to keep loading them from scratch on every page?

2: How would i go about doing that?

I only want the images to be cached...not the content, as it involves sessions which store login info.

View Replies View Related

Web Page Cache Free

how can control cache pages, when i logoff my session and back to members page again the page is still so how can i get rid of this .

View Replies View Related

Delete Cache Browser

Someone know how can i delete cache of browser in asp code? is posible?

View Replies View Related

Data Fetched From Cache

I have a asp page "shownews.asp" which caches the data..now when i view the website how do i verify that the data is being fetched from the cache only and not from the database.

View Replies View Related

Returning Cache Data

I have an employee phone book application that is 5 years old. Written in asp with vb script calling sp's. when someone queries the all employee page they get all employees. When they then query employees by location it will again return the all employees data.

I changed the RS names in the all employee page in hopes that would fix it. I added the no cache code on all my pages and this hasn't helped. This app is 5 years old and hasn't changed at all but this just started happening within the past 6 months. When the user clears all cache and tries again it will work. How do I fix this?

View Replies View Related

AspJpeg Image Cache

When I upload an image with same filename as image already up there it shows me the old image not the new. Refresh button in IE give me correct image but that is not good enougth.

I also no you can in IIS add header to expire the images immediately but I do not wish to this all the time. I wish to be able to put in the ASP page to always reload the image. Any clues. Response.Expires = 0 does not work as only the page not the image!"·"%!!·!

View Replies View Related

How To Cache Input Data On Page?

I have a problem to keep the input value from user still keep. The condition when User input , let me say" Employee Code","Employee Name","Level", then the user input all the 3 field, but when the user submit the employee code not unique/already had by another record,then the problem is after that Employee Name and level input value empty again. Then How to keep the input value....with that condition.....i have no idea....

View Replies View Related

Script In Deleting Cache In Browser

what would be the script in deleting cache automatically in browser in asp? if there's no cache would that affect the transactional functionalities like add, update... and so on? am i going to put such script on every page?

View Replies View Related

Cache Images But Not Dynamic Information

Does anyone know how I can have more control over which images are cached on a particular page?

I have Response.Expires = -1000 set at the top of the page to ensure that the page isn't cached because it is important that the data from the Database is not cached (this has been a problem in the past).

Is it possible to specify which images, ie the ones that are common to all pages, will be cached and which ones won't so as to force the user to cache them and therefore make he site slightly quicker?

Obviously I understand that if the user has their own caching rules setup, these will take precedence.

View Replies View Related

How To Not Cache All Elements Of A Web Page Download?

I have to continuously download the same web page on our IIS server. It is
important to always download a fresh page from the server including not only
the .asp page itself but all the .gif and .jpg files associated with that
page. We need to measure statistical info on how long it takes to download.
If the page is stored in the client machines internet cache that would be a
problem.

Now I know how to add the following to the main .asp page to insure a fresh
copy is always downloaded of this page itself.

<% Response.Expires = -2000 %>

When I look at the client machines cache folder it does show that the main
..asp page has expired an hour ago. However all the .gifs and .jpgs , etc downloaded with the main .aps page show the value Expire: None which I conclude means that these pieces are not redownload each time we get the main .asp page.

Up till now we have been using a perl script to try and erase the cache
before each download. This works sometimes but not all the time.

Is there any way to force the .gifs, .jpgs etc. to have to download fresh
each time just like I was able to get the main .asp page to redownload with
<% Response.Expires = -2000 %>

View Replies View Related

Opening PDF Within IE7 - File Could Not Be Written To Cache

I have a page in in ASP which lists static links to PDF files. When
users click on the links, they receive the following message:

right-clicking on the link and selecting "save target as" generates
the following error message from IE7:
"The file could not be written to the cache"

Clicking the link, and selecting "save" from the resultant dialog
generates:
"Internet Explorer was not able to open this Internet site. The
requested site is either unavailable or cannot be found please try
again later"

This page works fine in Mozilla.
I've researched this a bit and have read about the caching issues,
although none of the pages on the site address cache control. Any
thoughts or ideas as to why this isn't working?

View Replies View Related

Possible IIS Cache Issue Ghost Entries

User clicks on a button [BUY NOW], item is added to cart. User can either
continue shopping or view cart. The order here doesn't matter. When user
views cart, two items are added, the one selected and the last one in the
product file. The product file is a CSV file.

The last entry is called BAD-Product. It is a debug entry during site
development so the developer knows the product name is entered wrong, i.e.
misspelled. If the name was omitted an error would occur so there is a
name.

This only happens with Firefox and Netscape. IE experiences no problems.
The last entry is not added.

Accidental temporary solution:

In review of the code, a debug line was put in to make validate the product
item being returned. After saving the page (.asp add item page), the error
disappeared. The debug line was then commented out and the error still has
no resurfaced. Code:

View Replies View Related

Cache A User-specific Menu

My web application uses a custom-generated menu system which is tailored for each user individually when they log in, based on their permissions. I've got this working very quickly on the server using ASP, and the menus are just included into each page as it's served out.

The problem is that the menus take up a fair amount of bandwidth (about 12 seconds over 28.8 modem - not an uncommon dial-up speed in this part of the world). I can't really simplify the menus any further, so the only thing left to me is to somehow cache the menus on the client, but I can't figure out a way to do it.I've thought about getting the asp menu builder program to write out the menu item data to a .js script file and then build the menus on the client using the cached .js file, but this is clumsy, and if the user's machine is low-spec it could take longer to build the menus than download them.

View Replies View Related

Persistent Cache Initialization Failed

In my event log on my IIS 6.0 Windows 2003 Server I get the following Active Server Pages Error

Error: The Template Persistent Cache initialization failed for Application Pool 'DefaultAppPool' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes..

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved