Possible IIS cache issue - ASP ghost entries

R

Roland Hall

Scenario:

E-commerce:

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.

Additional sites on the same server also experienced the same issue.
Copying over the .asp file to the other sites solved the issue.

I repeat, only the debug line was added to show the product item to the
screen. It leaves me to believe IIS cache was involved somehow as I refuse
to accept adding a debug line and then commenting it out has any difference.
I have verified every step of the code and this was working correct without
error during development. The sites are still not in production and it is
possible the BAD-Product has been selected before.

Is it possible the cache issue was on the client or are there settings in
IIS cache that may affect this? Should cache be removed on all e-commerce
pages that require constant changes?

TIA...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top