This should work. Also pay attention on bug in last Safari for 6.x iOS -
for some strange reason it caches even POST
requests<http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results>,
so I had to add this headers for whole my mobile solution.


2013/1/17 Dietrich Streifert <[email protected]>

> Hi Alexander!
>
> Thank you for your answer.
>
> I'm running on apache so this may be a part of the solutions I'm
> searching for.
>
> I WANT the app.js to be cached UNTIL the file version changes.
>
> The html file (index.html) which loads app.js already has in <head>:
>
>    <meta http-equiv="Expires" content="0">
>    <meta http-equiv="cache-control" content="no-cache">
>    <meta http-equiv="Pragma" content="no-cache">
>
> which is I think equivalent to using mod_headers with: Header set Pragma
> "no-cache" and should therefore never get cached by the browser (or am I
> wrong here?).
>
> So opening index.html should reliably indicate to the browser if the url
> of the script tag changed which should cause an uncached load.
>
>
>
> Am 17.01.2013 10:40, schrieb Alexander Voronin:
> > There is another solution. Depending on yours HTTP server you may send
> > header "Cache-Control: no-cache" using special settings.
> > For apache you may use this directives in .htaccess file:
> >
> > <filesMatch ".(js|css)$">
> > FileETag None
> > <ifModule mod_headers.c>
> > Header set Pragma "no-cache"
> > </ifModule>
> > </filesMatch>
> >
> > If you'r using IIS create Web.config with following settings
> > in system.webServer section:
> >
> > <httpProtocol>
> > <customHeaders>
> > <add name="Cache-Control" value="no-cache" />
> > </customHeaders>
> > </httpProtocol>
> >
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>



-- 
когда я опустился на самое дно, снизу мне постучали..
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to