Reputation: 9171
I have the same xap loading, but the querystring of the page has been changed: Mypage?querystring=1
-> Mypage?querystring=2
How can I make it so my xap file always caches?
Upvotes: 2
Views: 344
Reputation: 189467
From a HTTP caching point of view the Url to fetch the HTML of you page is an entirely different resource to the URL to your XAP. Hence there should not be a problem caching the Xap whilst the url to the containing page varies.
You need to ensure you configure the web server to send the appropriate cache control headers when the Xap is fetched. In IIS7 my recommendation would be to set 1 Day expiry on the ClientBin folder.
Edit For IIs6:-
Upvotes: 2