I'm developing Samsung smart SDK app. When executing the app its shows previous version content. (my app is running on browser and its keep displaying previous changes that i have done to the app,not the current one) After restarting the TV its shows the latest update.
This is my header.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;user-scalable=no">
I did some changes to my Samsung TV App and it is working fine in my browser. But when comparing the defects they have mentioned (from Samsung) are not in my updated version and those are from previous submitted version. I think this should be a cache. I need to ignore this and load fresh one I updated.
In addition to the answers above you can:
Add no-cache headers to HTTP server, e.g. nginx:
location ~ .*(gif|jpg|jpeg|png|ico|css|swf|js|html|htm)$ { expires 0; }