Caching of JS files

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Suggested Hosts
Locked
User avatar
master412160
Registered User
Posts: 314
Joined: Sat May 22, 2010 5:45 pm
Location: Belgium, Flanders
Name: Max Pen
Contact:

Caching of JS files

Post by master412160 » Wed Oct 28, 2015 10:35 am

Does phpbb handle the caching of JS files well by simply adding ?assets_version={T_ASSETS_VERSION} to the end of the script.js file when you reference it in the template?

Or should I use an other caching solution that handles the caching of JS script files that I add on my own?

User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: Caching of JS files

Post by Arty » Wed Oct 28, 2015 10:41 am

phpBB doesn't and can't do anything about that. It only links to files. Files are served by web server without phpBB.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework

User avatar
Dragosvr92
Registered User
Posts: 1450
Joined: Sat Sep 12, 2009 7:27 am
Location: Romania
Name: Dragos Valentin Rădulescu
Contact:

Re: Caching of JS files

Post by Dragosvr92 » Wed Oct 28, 2015 1:07 pm

But it is able to store html template data. I think it was discussed about a different caching of css styes.
Formerly known as TheKiller
3.0| Avatar on Memberlist 1.0.3

User avatar
master412160
Registered User
Posts: 314
Joined: Sat May 22, 2010 5:45 pm
Location: Belgium, Flanders
Name: Max Pen
Contact:

Re: Caching of JS files

Post by master412160 » Wed Oct 28, 2015 5:22 pm

Dragosvr92 wrote:But it is able to store html template data. I think it was discussed about a different caching of css styes.
So it means I should come up with a caching solution of my own? I know of a jquery plugin that does this.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21309
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket - definitely

Re: Caching of JS files

Post by Mick » Thu Oct 29, 2015 11:35 am

Any particular reason?
"The more connected we get the more alone we become" - Kyle Broflovski

Locked

Return to “[3.0.x] Styles Support & Discussion”