Re: [Catalyst] Prevent reloading javascript files

2018-01-20 Thread Theo Bot
Somehow functions are executed twice when the the javascript file is
reloaded.

Regards Theo

On Jan 20, 2018 18:22, "Robert Rothenberg"  wrote:

> Why not serve them directly through Apache?
>
> On Fri, 19 Jan 2018, 10:13 Theo Bot,  wrote:
>
>> Hi
>>
>> Is there a way to prevent your browser to reload javascript/css/images
>> files on a page reload. I've tried to add use the appcache
>>
>> 
>>
>> In the myapp.appcache file:
>> CACHE MANIFEST
>> # 2018-01-19:v1
>>
>> # Cache section
>> CACHE:
>> /static/js/app.js
>> /static/js/colorbox.js
>>
>>
>> NETWORK:
>> *
>>
>> However the manifest file doesn't seem to get parsed. I don't see it
>> being loaded by firebug nor by the browserconsole.
>>
>> Any suggestions?
>> --
>> Kind regards,
>>
>> Theo Bot
>>
>> ___
>> List: Catalyst@lists.scsys.co.uk
>> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
>> Searchable archive: http://www.mail-archive.com/
>> catalyst@lists.scsys.co.uk/
>> Dev site: http://dev.catalyst.perl.org/
>>
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/
> catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Prevent reloading javascript files

2018-01-20 Thread Robert Rothenberg
Why not serve them directly through Apache?

On Fri, 19 Jan 2018, 10:13 Theo Bot,  wrote:

> Hi
>
> Is there a way to prevent your browser to reload javascript/css/images
> files on a page reload. I've tried to add use the appcache
>
> 
>
> In the myapp.appcache file:
> CACHE MANIFEST
> # 2018-01-19:v1
>
> # Cache section
> CACHE:
> /static/js/app.js
> /static/js/colorbox.js
>
>
> NETWORK:
> *
>
> However the manifest file doesn't seem to get parsed. I don't see it being
> loaded by firebug nor by the browserconsole.
>
> Any suggestions?
> --
> Kind regards,
>
> Theo Bot
>
> ___
> List: Catalyst@lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Prevent reloading javascript files

2018-01-19 Thread Theo Bot
Hi

Is there a way to prevent your browser to reload javascript/css/images
files on a page reload. I've tried to add use the appcache



In the myapp.appcache file:
CACHE MANIFEST
# 2018-01-19:v1

# Cache section
CACHE:
/static/js/app.js
/static/js/colorbox.js


NETWORK:
*

However the manifest file doesn't seem to get parsed. I don't see it being
loaded by firebug nor by the browserconsole.

Any suggestions?
-- 
Kind regards,

Theo Bot
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/