is there a hook could change the response content before the response back to the client?
-
excuse me, i want to know that is there a hook could change the response content before the response back to the client. I want to change all the URL(include 'nodebb.min.js' and nodebb's css file and any static file) to my CDN URL in the response, but i do not found the hook what i want(i know that we can use the [filter:post.get] to change the url in the post, but how to do with else). By the way, is there a doc tell us when the hook will be call and how many parameter and what they are ?
chinese:
请问有没有一个全局的钩子可以在响应的内容返回客户端之前对相应内容做一些处理,我想要将响应中的所有URL( 包括nodebb.min.js和nodebb的css文件和其他静态文件 )替换成CDN的URL, 但我目前好像没发现有这么一个hook( 帖子内容的修改我知道可以使用 [filter:post.get] ) ,
-
@julian yes, maybe change the header file is a simple way. But i want to make it could be configured in my admin panel, is there a way? Don't forget page besides header.tpl or topic's page also has the static file , for example, the "groups" page. So i think a response hook is require.