Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a way to cache Javascript, CSS and image files?

cache CSS files image Javascript
0
Posted

Is there a way to cache Javascript, CSS and image files?

0

Yes, Javascript, CSS, and image files can all be cached in Liferay. For Javascript and CSS, look in any of the themes’ “templates” directory. You’ll find 2 JSPs there – css_cached.jsp and javascript_cached.jsp. They do exactly what you’d expect. As for image files, any images that are stored in our database will be cached like any other object via OSCache, and any images that actually live on the server will be cached by your browser unless you turn that off.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123