A
aptenodytesforsteri
I have an ASP.NET 2.0 application I've localized to English, French,
German, and Italian.
I used resource (.resx) files.
Most of the site is static content, easily 90% of it, so I thought
output caching would be useful.
I implemented output caching at 60 seconds.
The problem: If page A is in English, it's get's cached as English.
The user can click on German, Italian, or French, but the page stays
in English. If click French, French, French for 60 seconds, it'll give
me French when the cache expires.
Question: How do I expire the cache when the user changes languages?
I've tried Response.Cache.SetExpires(DateTime.Now) when thr user
selects a new language, but that failed.
Ideas? Suggestions. Thanks in advance.
German, and Italian.
I used resource (.resx) files.
Most of the site is static content, easily 90% of it, so I thought
output caching would be useful.
I implemented output caching at 60 seconds.
The problem: If page A is in English, it's get's cached as English.
The user can click on German, Italian, or French, but the page stays
in English. If click French, French, French for 60 seconds, it'll give
me French when the cache expires.
Question: How do I expire the cache when the user changes languages?
I've tried Response.Cache.SetExpires(DateTime.Now) when thr user
selects a new language, but that failed.
Ideas? Suggestions. Thanks in advance.